Skip to content

Commit 0ca04dd

Browse files
committed
fix(nginx): redirect error_page to index.html
Signed-off-by: ZheNing Hu <adlternative@gmail.com>
1 parent badfefe commit 0ca04dd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docker/nginx.conf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ http {
2323
server {
2424
listen 80;
2525
server_name localhost;
26-
2726
root /usr/share/nginx/html;
2827
index index.html;
2928

29+
error_page 404 =200 /index.html;
30+
3031
location / {
32+
allow all;
3133
}
3234

3335
location ~ ^/(?<username>[^/]+)/(?<reponame>[^/]+)/(info/refs|git-upload-pack|git-receive-pack)$ {

0 commit comments

Comments
 (0)