From 652c79afaf837d3f624914bdb3a1aa9196d0cb17 Mon Sep 17 00:00:00 2001 From: Morten Stevens Date: Thu, 3 Jan 2019 18:51:23 +0100 Subject: [PATCH] Added nginx configuration file --- cacti.nginx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 cacti.nginx diff --git a/cacti.nginx b/cacti.nginx new file mode 100644 index 0000000..ce732b5 --- /dev/null +++ b/cacti.nginx @@ -0,0 +1,19 @@ +# cacti nginx configuration + +location = /cacti { + alias /usr/share/cacti/; +} + +location /cacti/ { + root /usr/share; + index index.php index.html; + + location ~ ^/cacti/(.+\.php)$ + { + try_files $uri =404; + fastcgi_intercept_errors on; + include fastcgi_params; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + fastcgi_pass php-fpm; + } +}