blob: 3ce5c30f6fe67046ce60f5cba7bc7e2dd4b3721e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#
# copy this file to /etc/nginx/cacti.conf
# and include it somewhere to 'server' section
#
# server {
# ...
# location /cacti {
# include cacti.conf;
# }
# ...
# }
#
root /usr/share/webapps/cacti;
index index.php;
location ~ \.php$ {
fastcgi_pass unix:/var/lib/cacti/socket;
include fastcgi.conf;
}
location ~ /(cli|log|rra|cache/*)/ {
deny all;
}
location ~ /\.ht {
deny all;
}
location ~* \.(ini|sql)$ {
deny all;
}
location ~* \.(ico|png|jpg|jpeg|gif)$ {
access_log off;
expires 30d;
}
|