Skip to content

Commit d7540ab

Browse files
authored
Configure 404 page (#2062)
1 parent d8da43e commit d7540ab

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nginx.conf

+5
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,10 @@ http {
2020
include /etc/nginx/mime.types;
2121
try_files $uri $uri/index.html $uri/ =404;
2222
}
23+
24+
error_page 404 /404.html;
25+
location = /404.html {
26+
root /usr/share/nginx/html/;
27+
}
2328
}
2429
}

0 commit comments

Comments
 (0)