diff options
Diffstat (limited to 'community/cacti/cacti.nginx.conf')
-rw-r--r-- | community/cacti/cacti.nginx.conf | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/community/cacti/cacti.nginx.conf b/community/cacti/cacti.nginx.conf new file mode 100644 index 0000000000..3ce5c30f6f --- /dev/null +++ b/community/cacti/cacti.nginx.conf @@ -0,0 +1,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; +} |