server { listen 8080; server_name site.lo www.site.lo; access_log W:/hosting/site.lo/nlogs/access.log main; error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/local/www/nginx-dist; } location ^~ /res/ {} location = / {} location ~ /\.ht { deny all; } rewrite ^/blog/([^/]+)/?(.*)?$ /blog/category/$2?$1 break; location / {} root W:/hosting/site.lo/www/; index index.php index.html index.htm; #For debug only autoindex on; }