server {
listen 80;
server_name _;
autoindex on;
index index.html index.htm index.php;
root C:/phpEnv/server/nginx/html/;
access_log logs/access.log;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location /{
if (!-e $request_filename) {
rewrite ^((.*)/)?(.*).html$ $1/index.php last;
}
}
}