Welcome! Log In Create A New Profile


error_page and 401 code

December 01, 2009 08:08AM

Recently I had a issue with auth module. I set one location to use basic authentication and tried to login via web browser but I couldn't. There was a error message logged:
"no user/password was provided for basic authentication, client: <IP>"
immediately and no popup windows posted by web browser. I started to review my config file and realized that error_page for 401 code was set to use full address, like that:
error_page 401 http://website.com/error/index.html
Setting this page to use "relative path"
error_page 401 /error/index.html
actually solved the issue.

Can anyone explain, why 401 code can not be used with full webserver's address? (as far as I can see, this is the only error code which cause troubles).
Subject Author Posted

error_page and 401 code

d2 December 01, 2009 08:08AM

Re: error_page and 401 code

vesperto December 02, 2009 05:56AM

Re: error_page and 401 code

d2 December 02, 2009 06:01AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 58
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready