652c79
# cacti nginx configuration
652c79
652c79
location = /cacti {
652c79
    alias /usr/share/cacti/;
652c79
}
652c79
652c79
location /cacti/ {
652c79
     root /usr/share;
652c79
     index index.php index.html;
652c79
652c79
     location ~ ^/cacti/(.+\.php)$
652c79
     {
652c79
         try_files $uri =404;
652c79
         fastcgi_intercept_errors on;
652c79
         include        fastcgi_params;
652c79
         fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
652c79
         fastcgi_pass   php-fpm;
652c79
     }
652c79
}