diff options
author | CoprDistGit <infra@openeuler.org> | 2024-11-25 12:25:55 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-11-25 12:25:55 +0000 |
commit | 1f0e60eceb85acab3154dfd2df19eee1ce14d359 (patch) | |
tree | c4a677f8bb1050dc20bc7d98d21b4e4ea888c08a /cacti.nginx | |
parent | 15e49492f3a764d7b2f947eabed89605897e2b7b (diff) |
automatic import of cacti
Diffstat (limited to 'cacti.nginx')
-rw-r--r-- | cacti.nginx | 19 |
1 files changed, 19 insertions, 0 deletions
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; + } +} |