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
5 <IfModule proxy_fcgi_module>
6 # Enable http authorization headers
7 <IfModule setenvif_module>
8 SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
11 <FilesMatch ".+\.ph(ar|p|tml)$">
12 SetHandler "proxy:unix:/run/php/php7.4-fpm.sock|fcgi://localhost"
14 <FilesMatch ".+\.phps$">
15 # Deny access to raw php sources by default
16 # To re-enable it's recommended to enable access to the files
17 # only in specific virtual host or directory
20 # Deny access to files without filename (e.g. '.php')
21 <FilesMatch "^\.ph(ar|p|ps|tml)$">