On Thu, 15 Jul 1999, Hiroyuki KUROSAKI wrote:
> Internet ---> xxx.yyy.zzz ---> firewall ---> aaa.bbb.ccc
> Squid server real httpd server (Apache)
>
> My idea is rewriting Location: header by the combination of
> the "ErrorDocument 301" directive and the CGI script on aaa.bbb.ccc.
> But I don't want to use any CGIs on aaa.bbb.ccc, and I feel
> it is smarter to resolve the problem on xxx.yyy.zzz, since I have
> known the Apache's ProxyPassReverse mechanism.
>
> Is there any other way to resolve the problem? Or is there any
> patches to Squid or future plans to resolve it?
Squid has nothing to do with this. This is Apache's problem.
Just use the ServerName and ErrorDocument directives:
ServerName xxx.yyy.zzz
ErrorDocument 404 http://xxx.yyy.zzz/404.html
Works for me.
Received on Thu Jul 15 1999 - 22:08:05 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:47:26 MST