diff --git a/php.conf b/php.conf index 2eb6a28..8585837 100644 --- a/php.conf +++ b/php.conf @@ -16,7 +16,26 @@ AddType text/html .php # DirectoryIndex index.php +# +# Redirect to local php-fpm (no mod_php in default configuration) +# + + + # Enable http authorization headers + SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1 + + + SetHandler "proxy:unix:/run/php-fpm/www.sock|fcgi://localhost" + + + + +# +# mod_php is deprecated as FPM is now used by default with httpd in event mode +# mod_php is only used when explicitly enabled or httpd switch to prefork mode +# # mod_php options +# # # Cause the PHP interpreter to handle files with a .php extension. @@ -43,15 +62,3 @@ DirectoryIndex index.php #php_value opcache.file_cache "/var/lib/php/opcache" - -# Redirect to local php-fpm if mod_php is not available - - - # Enable http authorization headers - SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1 - - - SetHandler "proxy:unix:/run/php-fpm/www.sock|fcgi://localhost" - - -