Added nginx configuration file

This commit is contained in:
Morten Stevens 2019-01-03 18:51:23 +01:00
parent 900811ea58
commit 652c79afaf

19
cacti.nginx Normal file
View File

@ -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;
}
}