On Wed, 2006-02-15 at 14:01 +0100, koen.vdvelde@xxxxxxxxxxxx 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@xxxxxxxxx>