Skip to content

Instantly share code, notes, and snippets.

@bulanov
Forked from frugan-dev/auth-vhost.conf
Created July 8, 2016 12:25
Show Gist options
  • Select an option

  • Save bulanov/db73145de3b62d4cc3c9f9b7af1d3a42 to your computer and use it in GitHub Desktop.

Select an option

Save bulanov/db73145de3b62d4cc3c9f9b7af1d3a42 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