Re: [squid-users] htpasswd

From: Amos Jeffries <>
Date: Fri, 18 Apr 2008 01:32:59 +1200

Abidoon Nadeem wrote:
> Hi,
> I installed squid on the front of our webserver in accelerator mode so
> that all static content is served by squid and the dynamic content
> passed to the webserver at the back. I am using lighttpd at the backend
> and have password protected one of the folders using htpasswd utility.
> After installing squid when I call the protected folder in the browser
> like so I get the authentication
> challenge window but when I enter the username and password the window
> comes back. It seems because of squid it is not possible to authenticate
> anymore.
> Any help with regards to this issue will be highly appreciated.

I think you need to add the 'login=PASS' option to the cache_peer line
for yoru web server. That way squid knows to trust it with your credentials.
NOTE: that is the exact text 'login=PASS', minus only the quotes.


Please use Squid 2.6.STABLE19 or 3.0.STABLE4
Received on Tue Apr 22 2008 - 14:32:36 MDT

This archive was generated by hypermail 2.2.0 : Thu May 01 2008 - 12:00:04 MDT