Re: [squid-users] Passing WWW-Authenticate to server in reverse proxy config

From: Henrik Nordstrom <[email protected]>
Date: Thu, 11 Mar 2004 23:45:09 +0100 (CET)

On Thu, 11 Mar 2004, Darton Williams wrote:

> I have a FreeBSD 4.8 system running the latest Squid 2.5 release. It's set
> up as a reverse proxy, but I want it to automatically authenticate to the
> one device it's supposed to proxy for. In other words, I have a device that
> requires username and password (I'm guessing using simple WWW-Authenticate
> headers since it's a firmware web server), and I want to pass that info,
> transparently to the user, via Squid.

There is two ways

a) cache_peer based forwarding, using the login= cache_peer option.

b) Use a redirector helper to add the login information to the forwarded
URL. Squid understands the URL syntax http://user:password@host/ and will
automatically translate this into Basic HTTP authenticaiton.

Regards
Henrik
Received on Thu Mar 11 2004 - 15:45:11 MST

This archive was generated by hypermail pre-2.1.9 : Thu Apr 01 2004 - 12:00:02 MST