09c20003 |
1 | # Redirect to local php-fpm if mod_php is not available |
2 | <IfModule !mod_php7.c> |
3 | <IfModule proxy_fcgi_module> |
4 | # Enable http authorization headers |
5 | <IfModule setenvif_module> |
6 | SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1 |
7 | </IfModule> |
8 | |
9 | <FilesMatch ".+\.ph(ar|p|tml)$"> |
10 | SetHandler "proxy:unix:/run/php/php7.2-fpm.sock|fcgi://localhost" |
11 | </FilesMatch> |
12 | <FilesMatch ".+\.phps$"> |
13 | # Deny access to raw php sources by default |
14 | # To re-enable it's recommended to enable access to the files |
15 | # only in specific virtual host or directory |
16 | Require all denied |
17 | </FilesMatch> |
18 | # Deny access to files without filename (e.g. '.php') |
19 | <FilesMatch "^\.ph(ar|p|ps|tml)$"> |
20 | Require all denied |
21 | </FilesMatch> |
22 | </IfModule> |
23 | </IfModule> |