From dc602054f233c343a109f0a346ef8fdca20bd1ae Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Fri, 20 May 2022 14:59:19 +0200 Subject: [PATCH] try internal location --- docker/nginx/conf.d/server/server.api | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 / {