Pass Authorization HTTP header to php-fpm environment

pull/1166/head
Richard van den Berg 2016-05-24 14:11:50 +02:00
parent 8443b3d4ea
commit a01845fea4
2 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,7 @@
</Directory>
<IfModule !mod_php5.c>
SetEnvIfNoCase Authorization "(.*)" HTTP_AUTHORIZATION=$1
DirectoryIndex /index.php index.php
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/MISP/app/webroot/$1
</IfModule>

View File

@ -10,6 +10,7 @@
</Directory>
<IfModule !mod_php5.c>
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
DirectoryIndex /index.php index.php
<FilesMatch \.php$>
SetHandler "proxy:fcgi://127.0.0.1:9000"