April 26, 2012 11:42PM
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
Subject Author Posted

PNP4Nagios + NGinX 1.0.15 Config

fLoo April 26, 2012 11:42PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 285
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready