remote_user and remote_password for custom http authentication?

Jed Schmidt tr at nslator.jp
Sun Oct 14 20:07:03 MSD 2007


Manilo,

Thanks for that reference. Maybe I'm doing something wrong, but when I
access a URL in the $user:$password at domain.com/ format, and then try
to access the $http_authorization variable in an SSI or in a rewrite
rule, it returns nothing. In other words, let's say I have the
following rule:

location = /auth {
	rewrite		(.*)	http://google.com/search?q=$http_authorization;
}

and then access http://user:pass@domain.com/auth. If the username and
password were accessible, wouldn't I be forwarded to
http://google.com/search?q=user:pass? Right now I'm being forwarded to
http://google.com/search?q= instead.

Thanks again for your help,

Jed


On 10/14/07, Manlio Perillo <manlio_perillo at libero.it> wrote:
> Jed Schmidt ha scritto:
> > Igor,
> >
> > It would be awesome if you could add that, unless there is a way to
> > access it already. Is there some header, for example, from which I can
> > access it already?
> >
>
> http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.8
> http://www.ietf.org/rfc/rfc2617.txt
>
>
>
> Regards  Manlio Perillo
>
>





More information about the nginx mailing list