1 # @todo check: templatize this, to make it work with any php version
3 # Redirect to local php-fpm if mod_php is not available
6 <IfModule proxy_fcgi_module>
7 # Enable http authorization headers
8 <IfModule setenvif_module>
9 SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
12 <FilesMatch ".+\.ph(ar|p|tml)$">
13 SetHandler "proxy:unix:/run/php/php-fpm.sock|fcgi://localhost"
15 <FilesMatch ".+\.phps$">
16 # Deny access to raw php sources by default
17 # To re-enable it's recommended to enable access to the files
18 # only in specific virtual host or directory
21 # Deny access to files without filename (e.g. '.php')
22 <FilesMatch "^\.ph(ar|p|ps|tml)$">