server {
listen 80;
server_name localhost;
location / {
root D:/programming/NPMserv/www;
index index.html index.htm index.php default.php;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location ~ .*\.php {
root D:/programming/NPMserv/www;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
set $path_info "";
set $real_script_name $fastcgi_script_name;
if ($fastcgi_script_name ~ "^(.+?.php)(/.+)$") {
#set $real_script_name $1;
set $path_info $2;
}
fastcgi_param PATH_INFO $path_info;
fastcgi_param SCRIPT_FILENAME D:/programming/NPMserv/www$fastcgi_script_name;
include fastcgi_params;
}
}