Skip to content

Instantly share code, notes, and snippets.

@pellepim
Created July 7, 2011 13:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pellepim/1069562 to your computer and use it in GitHub Desktop.
Save pellepim/1069562 to your computer and use it in GitHub Desktop.
Apache rewrite to get authorization header to environment var
RewriteEngine on
RewriteCond %{HTTP:Authorization} ^(.*)$ [NC]
RewriteRule /.* - [E=HTTP_AUTHORIZATION:%1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment