Skip to content

Instantly share code, notes, and snippets.

@ClaudioVarandas
Created December 1, 2014 18:32
Show Gist options
  • Save ClaudioVarandas/33f5b4588c1d2daa777e to your computer and use it in GitHub Desktop.
Save ClaudioVarandas/33f5b4588c1d2daa777e to your computer and use it in GitHub Desktop.
Header AUTH 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