try internal location
This commit is contained in:
parent
3fe46e3ef6
commit
dc602054f2
|
@ -23,9 +23,11 @@ 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 401 = @http_401;
|
error_page 401 /401.html;
|
||||||
location @http_401 {
|
location = /401.html {
|
||||||
alias /etc/nginx/conf.d/pages/401.txt;
|
root /etc/nginx/conf.d/pages;
|
||||||
|
allow all;
|
||||||
|
internal;
|
||||||
}
|
}
|
||||||
|
|
||||||
#location / {
|
#location / {
|
||||||
|
|
Reference in New Issue