ServerAdmin webmaster@localhost
DocumentRoot "{{root}}"
ErrorLog "{{logs.siteErrorLog}}"
LogFormat "%h %l %u %t \"%r\" %>s %b" common
CustomLog "{{logs.accessLog}}" common
Options Indexes FollowSymLinks ExecCGI
AllowOverride All
Require all granted
FcgidInitialEnv PHP_FCGI_MAX_REQUESTS 1000
AddHandler fcgid-script .php
FcgidWrapper "{{fcgidWrapperPath}}" .php
FcgidInitialEnv PHPRC "{{phprcPath}}"
{{#if os.windows}}
{{#unless shouldUseFcgid}}
ProxyFCGIBackendType GENERIC
SetHandler "proxy:fcgi://{{fastcgiWin32}}#"
{{/unless}}
{{else}}
SetHandler "proxy:{{fastcgiUnixSocket}}|fcgi://unused-domain-string-but-required/"
{{/if}}
ProxySet connectiontimeout=5 timeout=240 flushpackets=on
# If the php file doesn't exist, disable the proxy handler.
# This will allow .htaccess rewrite rules to work and
# the client will see the default 404 page of Apache
RewriteCond %{REQUEST_FILENAME} \.php$
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule (.*) - [H=text/html]
SetEnvIf X-Forwarded-Proto "https" HTTPS=on