I assume you are setting up Squid in accelerator mode, not as a proxy.
Doing acceleration for multi-domain sites can be done like this:
1. Compile your Squid with --disable-internal-dns
2. Add the accelerated domains to /etc/hosts with the IP of the real
server
3. Configure squid.conf like
httpd_accel_host your.main.domain
httpd_accel_uses_host_header on
acl myservers dst ip.of.real.server
acl HTTP protocol HTTP
acl port_80 port 80
http_access allow HTTP port_80 myservers
Or alternatively, as you seem to only be accelerating a single server
you can try the following:
httpd_accel_host ip.of.real.server
httpd_accel_uses_host_header on
httpd_accel_single_host on
Regards
Henrik Nordström
Squid Hacker
david leung wrote:
>
> Dear all,
>
> I try to setup a RH linux 7.2 running squid 2.4 to proxy a win2k iis
> server.
> Evrything work fime except when the iis serves a virtual directory which is
> a network drive from other computer. It shows the actual web sever
> URL. How can I solve this problem and also make the squid to cache the
> virtual directory content too. Please help
>
> scenio
> squid www.abc.com
> web server weba.abc.com:8001
> virtual dierctory in weba.abc.com, svr12data
>
> when i access www.abc.com, URL show ww.abc.com
> when i access ww.abc.com/svr12data, URL show weba.abc.com:8001/svr12data
Received on Thu Nov 01 2001 - 23:57:50 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:03:50 MST