Skip to content

Instantly share code, notes, and snippets.

View TrogloGeek's full-sized avatar

Damien VERON TrogloGeek

  • Apside
  • Brest, FRANCE
View GitHub Profile
@sobstel
sobstel / auth-vhost.conf
Created March 21, 2014 12:46
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>