diff --git a/nginx.conf b/nginx.conf index f910284..d41fac0 100644 --- a/nginx.conf +++ b/nginx.conf @@ -54,14 +54,12 @@ http { charset utf-8; - location / { + location /blog/ { root /usr/share/nginx/html; index index.html index.htm; } - rewrite ^/en/(.*)$ https://$server_name/$1 redirect; - - error_page 404 /404.html; + error_page 404 /blog/404.html; error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html;