From 64933ac41abcc2a6da20f7e951c7e5c3ae15369e Mon Sep 17 00:00:00 2001 From: keiran Date: Thu, 25 Jul 2019 21:41:02 -0400 Subject: [PATCH] ccfc fastcgi --- icinga2/files/icingaweb2.jinja | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/icinga2/files/icingaweb2.jinja b/icinga2/files/icingaweb2.jinja index 45b8938..8674682 100644 --- a/icinga2/files/icingaweb2.jinja +++ b/icinga2/files/icingaweb2.jinja @@ -20,9 +20,12 @@ rewrite ^/$ http://icinga.keiran.us/icingaweb2 permanent; try_files $1 $uri $uri/ /icingaweb2/index.php$is_args$args; } - location ~ ^/ccfc(.+)? { - alias /var/www/ccfc; - index index.php; + location ~ ^/ccfc/$ { + fastcgi_pass unix://var/run/php/php7.0-fpm.sock; + fastcgi_index index.php; + include fastcgi_params; + fastcgi_param SCRIPT_FILENAME /var/www/ccfc/index.php; + fastcgi_param REMOTE_USER $remote_user; } }