update nginx conf
This commit is contained in:
+2
-12
@@ -4,15 +4,6 @@ server {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
location = / {
|
||||
return 301 /homepage;
|
||||
}
|
||||
|
||||
location /_next/static/ {
|
||||
expires 365d;
|
||||
add_header Cache-Control "public, immutable";
|
||||
}
|
||||
|
||||
location /assets/ {
|
||||
expires 30d;
|
||||
add_header Cache-Control "public";
|
||||
@@ -30,9 +21,8 @@ server {
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri.html $uri/index.html =404;
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
error_page 404 /404.html;
|
||||
error_page 404 /index.html;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user