aboutsummaryrefslogtreecommitdiffstats
path: root/main/cacti/cacti.nginx.conf
diff options
context:
space:
mode:
authorValery Kartel <valery.kartel@gmail.com>2017-02-07 14:16:36 +0200
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-02-08 15:46:55 +0000
commitba3ed9a280a79501c09ed543b1a8c7c02994996e (patch)
tree74ecde663ae2f7a32366d0820c6f8803ed2e310e /main/cacti/cacti.nginx.conf
parent6a809057966d326cd79647149699d2346b0047f7 (diff)
downloadaports-ba3ed9a280a79501c09ed543b1a8c7c02994996e.tar.gz
aports-ba3ed9a280a79501c09ed543b1a8c7c02994996e.tar.bz2
aports-ba3ed9a280a79501c09ed543b1a8c7c02994996e.tar.xz
main/cacti: upgrade to 1.0.0
Diffstat (limited to 'main/cacti/cacti.nginx.conf')
-rw-r--r--main/cacti/cacti.nginx.conf36
1 files changed, 36 insertions, 0 deletions
diff --git a/main/cacti/cacti.nginx.conf b/main/cacti/cacti.nginx.conf
new file mode 100644
index 0000000000..3ce5c30f6f
--- /dev/null
+++ b/main/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;
+}