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 ^/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 / {
|
||||
|
|
Reference in New Issue