ci(docs-infra): show custom 404 page on preview server (for consistency) (#26199)
PR Close #26199
This commit is contained in:
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user