try error pages outside location

This commit is contained in:
Karol Wypchlo 2022-05-20 12:48:51 +02:00
parent 35bf172d28
commit 7c52fe77e1
No known key found for this signature in database
GPG Key ID: B515DE9EEBE241E1
1 changed files with 7 additions and 0 deletions

View File

@ -23,6 +23,13 @@ rewrite ^/stats /skynet/stats permanent;
rewrite ^/skynet/blacklist /skynet/blocklist permanent; rewrite ^/skynet/blacklist /skynet/blocklist permanent;
rewrite ^/docs(?:/(.*))?$ https://sdk.skynetlabs.com/$1 permanent; rewrite ^/docs(?:/(.*))?$ https://sdk.skynetlabs.com/$1 permanent;
# error_page 400 /etc/nginx/public/etc/nginx/conf.d/pages/400.html;
error_page 401 /etc/nginx/public/etc/nginx/conf.d/pages/401.html;
# error_page 403 /etc/nginx/public/etc/nginx/conf.d/pages/403.html;
# error_page 404 /etc/nginx/public/etc/nginx/conf.d/pages/404.html;
# error_page 451 /etc/nginx/public/etc/nginx/conf.d/pages/451.html;
# error_page 500 501 502 503 /etc/nginx/public/etc/nginx/conf.d/pages/5xx.html;
location / { location / {
include /etc/nginx/conf.d/include/cors; include /etc/nginx/conf.d/include/cors;