Apply new vhost-gen templates

This commit is contained in:
cytopia
2018-08-04 16:14:20 +02:00
parent a0982e9bb6
commit 24851eb58d

View File

@ -120,14 +120,17 @@ features:
# PHP-FPM will not be applied to a reverse proxy! # PHP-FPM will not be applied to a reverse proxy!
php_fpm: | php_fpm: |
# In case for PHP-FPM 5.2 compatibility use 'GENERIC' instead of 'FPM'
# https://httpd.apache.org/docs/2.4/mod/mod_proxy_fcgi.html#proxyfcgibackendtype
ProxyFCGIBackendType FPM
# PHP-FPM Definition # PHP-FPM Definition
<FilesMatch \.php$> <FilesMatch \.php$>
Require all granted Require all granted
SetHandler proxy:fcgi://__PHP_ADDR__:__PHP_PORT__ SetHandler proxy:fcgi://__PHP_ADDR__:__PHP_PORT__
</FilesMatch> </FilesMatch>
# enablereuse requires Apache 2.4.11 or later <Proxy "fcgi://__PHP_ADDR__:__PHP_PORT__/">
<Proxy "fcgi://__PHP_ADDR__:__PHP_PORT__/" enablereuse=on max=10>
</Proxy> </Proxy>
# If the php file doesn't exist, disable the proxy handler. # If the php file doesn't exist, disable the proxy handler.