Welcome! Log In Create A New Profile

Advanced

error_page and 401 code

d2
December 01, 2009 08:08AM
Hi,

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:
[code]
"no user/password was provided for basic authentication, client: <IP>"
[/code]
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:
[code]
error_page 401 http://website.com/error/index.html
[/code]
Setting this page to use "relative path"
[code]
error_page 401 /error/index.html
[/code]
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