From f4f77e1642ad6c900f68a6e36b4452838c4ef7b1 Mon Sep 17 00:00:00 2001 From: ralf Date: Wed, 18 Jan 2023 14:37:24 -0600 Subject: [PATCH] Fix install instructions to also add /status to Nginx/Apache2 reverse proxy on the host --- admin/fpm-status.php | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/admin/fpm-status.php b/admin/fpm-status.php index ed23ec1f8b..9e2cf73afb 100644 --- a/admin/fpm-status.php +++ b/admin/fpm-status.php @@ -2,7 +2,23 @@ /** * EGgroupware administration PHP FPM status page * - * 1. The status page needs to be enabled in EGroupware's Nginx talking to PHP FPM (/etc/egroupware-docker/egroupware-nginx.conf): + * 1a. The status page needs to be enabled in the Nginx reverse proxy on the host (/etc/egroupware-docker/nginx.conf): + * + * location = /status { + * proxy_pass http://127.0.0.1:8080; + * include proxy_params; + * } + * + * And Nginx need to be restarted: nginx -s reload + * + * 1b. If you use Apache2 on the host instead, you need to add it there (/etc/egroupware-docker/apache.conf): + * + * ProxyPass /status http://127.0.0.1:8080/status timeout=4000 connectiontimeout=600 acquire=3000 retry=6 + * ProxyPassReverse /status http://127.0.0.1:8080/status + * + * And Apache need to be restarted: systemctl reload apache2 # httpd for RHEL/CentOS + * + * 2. The status page needs to be enabled in EGroupware's Nginx talking to PHP FPM (/etc/egroupware-docker/egroupware-nginx.conf): * * location = /status { * if ($http_referer !~ /admin/fpm-status.php$) { @@ -14,9 +30,7 @@ * fastcgi_pass $egroupware:9000; * } * - * 2. The Nginx need to be restarted: - * - * docker restart egroupware-nginx + * And Nginx need to be restarted: docker restart egroupware-nginx * * 3. FPM need to be configured to serve status under /status *