Skip to content

Commit 888d9e5

Browse files
committed
[FIX] error page
1 parent 737c1ed commit 888d9e5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

charts/adhoc-defaultbackend/v0.1.8/templates/nginx-config.yaml

+3-5
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,15 @@ data:
1111
include /etc/nginx/mime.types;
1212
default_type application/octet-stream;
1313
14+
error_page 404 =200 /index.html;
15+
1416
server {
1517
listen 80;
1618
server_name _;
1719
root /usr/share/nginx/html;
18-
20+
1921
location / {
2022
try_files $uri $uri/ /index.html;
2123
}
22-
23-
location ~ ^/(.*)$ {
24-
try_files /index.html =404;
25-
}
2624
}
2725
}

0 commit comments

Comments
 (0)