WIP tests on Docker
[plcapi.git] / tests / ci / config / apache_phpfpm_proxyfccgi
1 # @todo check: templatize this, to make it work with any php version
2
3 # Redirect to local php-fpm if mod_php is not available
4 <IfModule !mod_php7.c>
5 <IfModule proxy_fcgi_module>
6     # Enable http authorization headers
7     <IfModule setenvif_module>
8         SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
9     </IfModule>
10
11     <FilesMatch ".+\.ph(ar|p|tml)$">
12         SetHandler "proxy:unix:/run/php/php7.4-fpm.sock|fcgi://localhost"
13     </FilesMatch>
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
18         Require all denied
19     </FilesMatch>
20     # Deny access to files without filename (e.g. '.php')
21     <FilesMatch "^\.ph(ar|p|ps|tml)$">
22         Require all denied
23     </FilesMatch>
24 </IfModule>
25 </IfModule>