mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
ci(docs-infra): show custom 404 page on preview server (for consistency) (#26199)
PR Close #26199
This commit is contained in:
committed by
Jason Aden
parent
b4421bb96b
commit
2fe401dfbb
@@ -36,6 +36,11 @@ server {
|
||||
access_log {{$AIO_NGINX_LOGS_DIR}}/access.log;
|
||||
error_log {{$AIO_NGINX_LOGS_DIR}}/error.log;
|
||||
|
||||
error_page 404 /404.html;
|
||||
location "=/404.html" {
|
||||
internal;
|
||||
}
|
||||
|
||||
location "~/[^/]+\.[^/]+$" {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user