Skip to content
Snippets Groups Projects
Commit 231e92d9 authored by jurgenhaas's avatar jurgenhaas
Browse files

Allow to configure PHP FPM port for simple default sites

parent f87d370c
No related branches found
No related tags found
No related merge requests found
......@@ -4,9 +4,9 @@
ServerAdmin {{apache_server_admin}}
{% if php_fpm|default(true) and not php_fpm_socket|default(false) %}
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www{{apache_server_default_root}}/$1
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:{{ php_fpm_port|default(9000) }}/var/www{{apache_server_default_root}}/$1
ProxyTimeout 900
<Proxy fcgi://127.0.0.1:9000>
<Proxy fcgi://127.0.0.1:{{ php_fpm_port|default(9000) }}>
ProxySet connectiontimeout=5 timeout=900 retry=3
</Proxy>
{% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment