From 1f0e60eceb85acab3154dfd2df19eee1ce14d359 Mon Sep 17 00:00:00 2001
From: CoprDistGit <infra@openeuler.org>
Date: Mon, 25 Nov 2024 12:25:55 +0000
Subject: automatic import of cacti

---
 cacti.nginx | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 cacti.nginx

(limited to 'cacti.nginx')

diff --git a/cacti.nginx b/cacti.nginx
new file mode 100644
index 0000000..ce732b5
--- /dev/null
+++ b/cacti.nginx
@@ -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;
+     }
+}
-- 
cgit v1.2.3