Re: Now a redirect.pl question

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Thu, 01 Jun 2000 16:16:41 +0200

Please use the squid-users list for future questions.

Kent, Mr. John wrote:

> For example a request to according to my squid_console.log
> http://www.nrlmry.navy.mil:7676/archdat is correctly changed to
> http://kauai.nrlmry.navy.mil/archdat/ the later URL works fine
> when accessed directly.
> The problem is that when done via Squid it times out.

Can you request it using for example lynx from the host where Squid
runs? (no proxy settings).

> Similar problem when you type in
> http://www.nrlmry.navy.mil:7676/sat-bin/epac_westcoast.cgi, it is correctly
> translated to
> http://kauai.nrlmry.navy.mil/sat-bin/epac_westcoast.cgi the later URL works
> OK when accessed directly, but when Squid does it, get a Connection Timed
> Out
> error.

Same problem.

> Do you have any idea why I get a Connection Timed out error even though
> the redirect.pl script has translated to valid URL?

> 2. It is not wise to have httpd_accel_host,port match the same address
> as Squid is running on. Doing so easily creates a request loop where
> Squid forwards the request to itself.
>
> Per your suggestion I moved my webserver to a different address and port
> http://kelvin.nrlmry.navy.mil:9999 left Squid listening to
> http://www.nrlmry.navy.mil:7676

Ok. A bit messy but it will do.

Watch out for server generated redirects.

> 3. Note that the httpd_accel_with_proxy function has limitations. Squid
> usually cannot proxy hosts it is accelerating. Can be worked around
> using a redirector.
>
> I commented this line out and that seemed to solve the Access Denied
> problem.

Shouldn't make any difference. The problem is about how you use Squid.
If you configure your browsers to use Squid as a proxy then there might
be problems for you accessing the accelerated servers unless propery
taken care of by the redirectors.

> A couple of other questions, in addition to the redirect question.
>
> II. When I access the default homepage manually via a browser
> calling http://www.nrlmry.navy.mil:7676 Squid seems to work fine
> and I get cache HIT.
>
> However when I tried to access the same URL via Apache's benchmarking tool
> ab -n 1000 -c 100 http://www.nrlmry.navy.mil:7676/

No idea what kind of requests that tool sends to Squid. Try enabling
log_mime_hdrs and see if there are any oddities.

> III. When I tried to put the line
> replacement_policy LFUDA in my config file, squid complains bitterly about
> it?
> When I take it out squid is happy again

Have you enabled the HEAP based policies? (probably not).

--
Henrik Nordstrom
Squid hacker
Received on Thu Jun 01 2000 - 08:56:22 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:53:49 MST