On Tue, 11 Oct 2005 DGeorgie@wiley.com wrote:
> It looks to me Squid is not rewriting the URL of the response to look like
> that of the request.
Correct. It only rewrites the request.
> The Web/J2EE application is using lots of redirects and whatever it
> receives from Squid server ( httpd_accel_host & httpd_accel_port) it
> sends back in the response in the Location HTTP header.
Then you will run into trouble.
The accelerator support in Squid is designed with the assumtion that you
have reasonable control over the backend servers making their responses
look real.
Genereally my recommendataion is to avoid URL rewriting as much as
possible in either direction. As soon as you start with URL rewrites you
will sooner or later (usually sooner) end up in trouble.
If you have a single backend server then the simplest setup is
httpd_accel_host your.real.sitename
httpd_accel_uses_host_header off
then point your.real.sitename to the backend web server in /etc/hosts.
If you have multiple backend servers for different parts of the site then
it's slightly more complicated.
Regards
Henrik
Received on Wed Oct 12 2005 - 15:46:19 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Nov 01 2005 - 12:00:04 MST