github.com/ddev/ddev@v1.23.2-0.20240519125000-d824ffe36ff3/containers/ddev-webserver/ddev-webserver-base-files/etc/apache2/conf-available/php8.3-fpm.conf (about) 1 # Redirect to local php-fpm if mod_php is not available 2 <IfModule !mod_php8.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 # Using (?:pattern) instead of (pattern) is a small optimization that 10 # avoid capturing the matching pattern (as $1) which isn't used here 11 <FilesMatch ".+\.ph(?:ar|p|tml)$"> 12 SetHandler "proxy:unix:/run/php-fpm.sock|fcgi://localhost" 13 </FilesMatch> 14 # The default configuration works for most of the installation, however it could 15 # be improved in various ways. One simple improvement is to not pass files that 16 # doesn't exist to the handler as shown below, for more configuration examples 17 # see https://wiki.apache.org/httpd/PHP-FPM 18 # <FilesMatch ".+\.ph(?:ar|p|tml)$"> 19 # <If "-f %{REQUEST_FILENAME}"> 20 # SetHandler "proxy:unix:/run/php/php8.3-fpm.sock|fcgi://localhost" 21 # </If> 22 # </FilesMatch> 23 <FilesMatch ".+\.phps$"> 24 # Deny access to raw php sources by default 25 # To re-enable it's recommended to enable access to the files 26 # only in specific virtual host or directory 27 Require all denied 28 </FilesMatch> 29 # Deny access to files without filename (e.g. '.php') 30 <FilesMatch "^\.ph(?:ar|p|ps|tml)$"> 31 Require all denied 32 </FilesMatch> 33 </IfModule> 34 </IfModule>