Skip to content

Instantly share code, notes, and snippets.

@sobstel
Created March 21, 2014 12:46
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save sobstel/9685406 to your computer and use it in GitHub Desktop.
Save sobstel/9685406 to your computer and use it in GitHub Desktop.
Passing HTTP AUTH BASIC/DIGEST headers from Apache to PHP-FPM
<VirtualHost *>
ServerName auth.dev
DocumentRoot "/var/www/auth"
ProxyPassMatch ^(/.*\.php)$ fcgi://127.0.0.1:9000/var/www/auth
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment