-
-
Save frugan-dev/c1e7cb5131b4c67a292b to your computer and use it in GitHub Desktop.
Passing HTTP AUTH BASIC/DIGEST headers from Apache to PHP-FPM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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