ci(docs-infra): show custom 404 page on preview server (for consistency) (#26199)
PR Close #26199
This commit is contained in:
parent
3683c6a188
commit
ab6f055479
|
@ -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…
Reference in New Issue