From 231e92d9bf884e6006e25c98a06530ea1861042a Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Mon, 31 Dec 2018 10:18:03 +0100 Subject: [PATCH] Allow to configure PHP FPM port for simple default sites --- templates/etc-apache2-sites-available-default | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/etc-apache2-sites-available-default b/templates/etc-apache2-sites-available-default index 64814bb..6eadcaa 100644 --- a/templates/etc-apache2-sites-available-default +++ b/templates/etc-apache2-sites-available-default @@ -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 %} -- GitLab