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 b4421bb96b
commit 2fe401dfbb

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