mirror of
https://github.com/cytopia/devilbox.git
synced 2025-06-22 17:08:56 +00:00
Apply new vhost-gen templates
This commit is contained in:
@ -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.
|
||||||
|
Reference in New Issue
Block a user