PNP4Nagios + NGinX 1.0.15 Config

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: