Skip to content

Instantly share code, notes, and snippets.

@frugan-dev
Forked from sobstel/auth-vhost.conf
Created November 3, 2015 11:43
Show Gist options
  • Save frugan-dev/c1e7cb5131b4c67a292b to your computer and use it in GitHub Desktop.
Save frugan-dev/c1e7cb5131b4c67a292b 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