Skip to content

Commit 5448367

Browse files
Add error_page to docs config (#637)
1 parent cbf6990 commit 5448367

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

salt/docs/config/nginx.docs-redirects.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,11 @@ location ~ ^/((2|3)(\.[0-9]+)?|dev)/\w+/[\d\w\.]+(?!\.html)$ {
188188
# Add the Surrogate-Key for bulk CDN purging
189189
# xref https://docs.fastly.com/en/guides/working-with-surrogate-keys
190190
location ~ ^/((2|3)(\.[0-9]+)?|dev)/ {
191+
error_page 404 /$1/404.html;
191192
add_header Surrogate-Key en/$1 always;
192193
}
193194
location ~ ^/(bn-in|el|es|fr|id|it|ja|ko|pl|pt-br|ro|tr|sv|uk|zh-cn|zh-tw)/((2|3)(\.[0-9]+)?|dev)/ {
195+
error_page 404 /$1/$2/404.html;
194196
add_header Surrogate-Key $1/$2 always;
195197
}
196198

0 commit comments

Comments
 (0)