github.com/drud/ddev@v1.21.5-alpha1.0.20230226034409-94fcc4b94453/containers/ddev-webserver/ddev-webserver-base-files/etc/apache2/conf-available/php8.1-fpm.conf (about) 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:/var/run/php-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>