3

I want to process a request header using a custom rewrite map.

Therefore I want to have the content of the header in an environment variable.

I have not found a way to do that with mod_headers and/or mod_rewrite.

Any help is appriciated.

The Surrican
  • 29,118
  • 24
  • 122
  • 168

1 Answers1

6

Mod_rewrite example for the request header "X-Forwarded-For":

RewriteRule .* - [E=X-Forwarded-For:%{HTTP:X-Forwarded-For}]

Alin
  • 1,176
  • 1
  • 12
  • 15