Re: [squid-users] How can do squid bypass client's request to orign server if 404 error code occured?.

From: Amos Jeffries <squid3@dont-contact.us>
Date: Mon, 29 Oct 2007 17:01:08 +1300 (NZDT)

> Hi Squid Users.
>
> I'm looking to setup a reverse proxy cache with SQUID if squid can't find
> pages(html or image)
> then client's request go to origin server. (bypass)

That is exactly how an accelerator proxy works.
Only, to get a 404, the 404 has to have come from the origin server in the
first place. Making users request each 404 twice is a waste.

>
> Example.
> ------------------------------------------------------
>
> # Current Status.
> Step 1.
> Client Request => Reverse Proxy(Squid) => Origin
> Server(Apache)
>
> Step 2.
> HTTP 404 (Not found event)
>
> Step 3.
> Squid Error code =>
nope.
Squid says:
  "Apache gave me this earlier, its a 404. Here you go...."
OR squid says:
 "I don't have that, (Apache what have you got? okay.). Apache sent this
back, its a 404. Here you go...."

>
> ERROR
> The requested URL could not be retrieved
> --------------------------------------------------------------------------------
> While trying to retrieve the URL: http://x.x.x.x/asd
> The following error was encountered:
> Access Denied.
> Access control configuration prevents your request from being allowed at
> this time. Please contact your service provider if you feel this is
> incorrect.
> Your cache administrator is webmaster.
>
> * I want change like this

Ah,
your Squid is saying: "I'm not allowed to talk to you. Go away!"
 that is caused by a miss-configuration of squid.
 You are blocking external requests for x.x.x.x/asd.

What do you have in squid.conf? and what version of squid?

Amos
Received on Sun Oct 28 2007 - 22:01:11 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Nov 01 2007 - 13:00:02 MDT