PNP4Nagios + NGinX 1.0.15 Config
fLoo
nginx-forum at nginx.us
Fri Apr 27 03:42:39 UTC 2012
Hello, i'm having a serious problem which i cant solve within 8 hours of
debugging. I would like to use pnp4nagios (for icinga)
I got it working under the docroot http://1.2.3.4 but i want it to work
in http://1.2.3.4/pnp4nagios
location / {
root /usr/local/pnp4nagios/share;
index index.html index.htm index.php;
if (!-e $request_filename) {
rewrite ^/(.+)$ /index.php?kohana_uri=$1 last;
break;
}
}
location ~ \.php$ {
root /usr/local/pnp4nagios/share;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
}
this code works perfectly for the docroot, but i dont get it working in
/pnp4nagios
any help much appreciated
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,225851,225851#msg-225851
More information about the nginx
mailing list