diff --git a/icinga2/files/icingaweb2.jinja b/icinga2/files/icingaweb2.jinja index 932b15d..45b8938 100644 --- a/icinga2/files/icingaweb2.jinja +++ b/icinga2/files/icingaweb2.jinja @@ -6,7 +6,7 @@ rewrite ^/$ http://icinga.keiran.us/icingaweb2 permanent; location ~ ^/icingaweb2/index\.php(.*)$ { # fastcgi_pass 127.0.0.1:9000; - fastcgi_pass unix:/var/run//php/php7.0-fpm.sock; + fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; fastcgi_index index.php; include fastcgi_params; fastcgi_param SCRIPT_FILENAME /usr/share/icingaweb2/public/index.php; @@ -20,4 +20,9 @@ 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; + } + } diff --git a/icinga2/init.sls b/icinga2/init.sls index 97e5400..93b9dd5 100644 --- a/icinga2/init.sls +++ b/icinga2/init.sls @@ -37,3 +37,4 @@ icingaweb2_enable: - watch_by: - service: nginx +# apt --no-install-recommends install nagios-nrpe-plugin