Jens-Uwe Mager wrote:
> If a proxy request for www.han.de comes in, squid now contacts itself
> instead of harlie.han.de directly and the error occurs. Is there any way
> to configure squid to redirect the proxy request to harlie.han.de
> directly?
As www.han.de is your proxy, you have to use a redirector to redirect
proxied request to the real server. Otherwise Squid sends the request to
itself and then loop detection kicks in and rejects the request.
The difference from Squid 1.x is the loop detection. Previous versions
whould happily accelerate requests from itself (which then got
accelerated), and thereby easily creating devestating infinite
forwarding loops in some configurations. With the loop detection code it
is now considerably harder to configure Squid to do infinite forwarding
loops (it is possible but left as an excersise to the interested
reader... hint: never_direct is required).
Sample redirector:
#!/usr/bin/perl -p
BEGIN {$|=1;}
s!^http://www.han.de($|/)!http://harlie.han.de/!;
--- Henrik Nordstrom Spare time Squid hackerReceived on Sat Jan 09 1999 - 18:19:45 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:43:56 MST