Added nginx configuration file
This commit is contained in:
parent
900811ea58
commit
652c79afaf
19
cacti.nginx
Normal file
19
cacti.nginx
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user