Re: [squid-users] Squid Reverse Proxy - how to rewrite returning HTML code

From: Kinkie <[email protected]>
Date: Fri, 17 Feb 2006 00:39:37 +0100

On Wed, 2006-02-15 at 14:01 +0100, koen.vdvelde@proviron.com wrote:
> Hi All,
>
> I'm trying to configure Squid (squid-2.5.STABLE3-3.3E) as a Reverse Proxy /
> HTTP Accelerator

[...]

> This works ... as long as the HTTP-code returned by apache is using
> relative links
> BUT ... when absolute links (including servername, ...) are returned, the
> client is pointed to the URL http://site.server.com/... . And this
> DNS-name (site.server.com) is only known in the LAN, not on the
> internet-client :-(
>
> Since I do not own the APACHE-server myself, I can't change it's behaviour
> and will have to find a way to make it working trough squid.

> Can SQUID rewrite the returning HTML code too ? Just like it
> rewrites/redirects the http-requests ?

Currently it cannot. An ICAP server might do that (check for the patches
to squid to enable ICAP support). the best option would be to change the
ServerName in apache's configuration.

> Or is there an other solution to get the reverse proxy/http-accelerator to
> work without the redirect-trouble ?

Unfortunately it all boils down to the HTML, which squid is not equipped
to change (except for ESI, but that's entirely another story).

-- 
Kinkie <kinkie-squid@kinkie.it>
Received on Thu Feb 16 2006 - 16:39:38 MST

This archive was generated by hypermail pre-2.1.9 : Wed Mar 01 2006 - 12:00:03 MST