diff --git a/docker/nginx/conf.d/server/server.api b/docker/nginx/conf.d/server/server.api index d0bcee95..e27c1868 100644 --- a/docker/nginx/conf.d/server/server.api +++ b/docker/nginx/conf.d/server/server.api @@ -23,9 +23,11 @@ rewrite ^/stats /skynet/stats permanent; rewrite ^/skynet/blacklist /skynet/blocklist permanent; rewrite ^/docs(?:/(.*))?$ https://sdk.skynetlabs.com/$1 permanent; -error_page 401 = @http_401; -location @http_401 { - alias /etc/nginx/conf.d/pages/401.txt; +error_page 401 /401.html; +location = /401.html { + root /etc/nginx/conf.d/pages; + allow all; + internal; } #location / {