RE: [squid-users] Squid reverse proxy - URL change in the response

From: Chris Robertson <[email protected]>
Date: Mon, 10 Oct 2005 14:23:03 -0800

> -----Original Message-----
> From: DGeorgie@wiley.com [mailto:DGeorgie@wiley.com]
> Sent: Friday, October 07, 2005 10:21 AM
> To: squid-users@squid-cache.org
> Subject: [squid-users] Squid reverse proxy - URL change in
> the response
>
>
> hi,
>
> A question related to the URL a client receives as a response to its
> request.
>
> If a client sends the following request http://www.somename.com/...
>
> Squid in reverse proxy mode with the following configuration
> httpd_accel_host myhost.domain.com
> httpd_accel_port 8080
> httpd_accel_single_host on
> httpd_accel_uses_host_header off
>
> returns the following URL in the response
>
> http://myhost.domain.com:8080/ ...
>
> which is wrong. Is there any way I can tell Squid to return
> back to the
> user the original URL?
>
> Right now I am resorting to the following solution which I consider
> temporary
>
> in /etc/hosts file add the following line
>
> IP_of_myhost.domain.com www.somename.com
>
>
> and Squid configuration changes to
>
> httpd_accel_host www.somename.com
> httpd_accel_port 80
> httpd_accel_single_host on
> httpd_accel_uses_host_header off
>
> Thanks,
>
> Dimitar
>

First a disclaimer. I don't run squid as an accelerator so I am not certain of any of the methods that I propose. According to http://www.faqs.org/docs/securing/chap28sec231.html, you might want to set

http_accel_host IP_of_myhost.domain.com

and

redirect_rewrites_host_header off

Chris
Received on Mon Oct 10 2005 - 16:23:06 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Nov 01 2005 - 12:00:04 MST