Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support working with PHP FPM (the default PHP SAPI with RHEL/CentOS 8) #8942

Merged
merged 5 commits into from Nov 25, 2019
@@ -204,7 +204,12 @@ Alias /content "@WEB_DIR@/content"
<Directory "@WEB_DIR@/content">
Options -ExecCGI -Indexes
SetEnv force-no-vary
php_flag engine off
<IfModule mod_php5.c>
php_flag engine off
</IfModule>
<IfModule mod_php7.c>
php_flag engine off
</IfModule>
ExpiresActive On
ExpiresDefault "access plus 3 month"
Header unset ETag
@@ -235,6 +240,23 @@ Alias /flash "@WEB_DIR@/flash"
</IfVersion>
</Directory>

<IfModule !mod_php5.c>
<IfModule !mod_php7.c>
# Enable http authorization headers
SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1

<FilesMatch \.(php|phar)$>
SetHandler "proxy:unix:/run/php-fpm/www.sock|fcgi://localhost"
</FilesMatch>
<Directory "@WEB_DIR@/content">
<FilesMatch ".+\.*$">
SetHandler !
</FilesMatch>
</Directory>
</IfModule>
</IfModule>


# ------------------------------------------------------------------------------
# | Web fonts access |
# ------------------------------------------------------------------------------
@@ -0,0 +1,11 @@
php_value[memory_limit] = 256M
php_value[upload_tmp_dir] = "@WEB_DIR@/tmp"
php_value[request_order] = "CGP"
php_value[display_errors] = off
php_value[max_execution_time] = 60
php_value[post_max_size] = 2024M
php_value[upload_max_filesize] = 2000M
php_value[variables_order] = "EGPCS"
php_value[max_input_vars] = 10000
php_value[magic_quotes_gpc] = off
php_value[date.timezone]='@TIME_ZONE@'
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.