Re: Custom 401 page not displaying or not prompting for credentials

2013-07-14 Thread Michael
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

Re: Custom 401 page not displaying or not prompting for credentials

2013-07-14 Thread Maxim Dounin
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/

Custom 401 page not displaying or not prompting for credentials

2013-07-13 Thread Michael
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