ci(docs-infra): show custom 404 page on preview server (for consistency) (#26199)

PR Close #26199
This commit is contained in:
George Kalpakas 2018-10-01 23:19:58 +03:00 committed by Jason Aden
parent 3683c6a188
commit ab6f055479
1 changed files with 5 additions and 0 deletions

View File

@ -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;
}