envdev/lamp-xenial64-fpm/data/Apache/phpfcgi.conf
2016-12-02 11:47:24 +01:00

21 lines
957 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<IfModule proxy_fcgi_module>
# Add Authorization Header
<IfModule setenvif_module>
SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
</IfModule>
# PHP-FPM Handler
<FilesMatch "\.php$">
# Pick one of the following approaches
# Use the standard TCP socket
# SetHandler "proxy:fcgi://localhost/:9000"
# If your version of httpd is 2.4.9 or newer (or has the back-ported feature), you can use the unix domain socket
# SetHandler "proxy:unix:/path/to/app.sock|fcgi://localhost/"
SetHandler "proxy:unix:/var/run/php/php7.0-fpm.sock|fcgi://localhost/"
</FilesMatch>
# Définition d'une configuration de mandataire qui convient.
# La partie qui est mise en correspondance avec la valeur de SetHandler est la partie qui suit
# le "pipe". Si vous devez faire une distinction, "localhost" peut être changé en un nom de
# serveur unique.
#<Proxy "fcgi://localhost/" enablereuse=on max=10>
#</Proxy>
</IfModule>