Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Passing HTTP AUTH BASIC/DIGEST headers from Apache to PHP-FPM
<VirtualHost *>
DocumentRoot "/var/www/auth"
ProxyPassMatch ^(/.*\.php)$ fcgi://
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment