Added auth_basic off; as so:
location = /401.html {
auth_basic off;
root G:/Files;
}
returns error 403 and 'access forbidden by rule' error. So then I added
allow all; like this:
location = /401.html {
allow all;
auth_ba
Hello!
On Sat, Jul 13, 2013 at 02:40:14PM +0100, Michael wrote:
> Hello, I was trying to set a custom error 401 page on my Nginx server
> version 1.5.1 using the following methods:
>
> error_page 401 /401.html
> By itself it still displays the default site
>
> error_page 401 http://example.com/
Hello, I was trying to set a custom error 401 page on my Nginx server
version 1.5.1 using the following methods:
error_page 401 /401.html
By itself it still displays the default site
error_page 401 http://example.com/401.html
Goes straight to the custom error page without a chance to authenticate