Re: Squid question

From: Henrik Nordstrom <[email protected]>
Date: Mon, 18 Sep 2000 22:57:38 +0200

Add the two domains to /etc/hosts on your Squid server, with the IP
address of the real server.

Then use the following small squid.conf:

httpd_accel_host your.main.server
httpd_accel_uses_host_header on
acl all src 0.0.0.0/0
acl realserver dst ip.of.the.real.server
acl port80 port 80
http_access allow realserver port80
cache_dir ....

(the ip.of.real.server and cache_dir lines you need to adjust to suit
your setup).

Then as a third step make sure that all replies from the web server that
you want to accelerate is indeed cacheable. If you have CGI or PHP pages
this involves changing the scripts to add a Expires header, or tweaking
Squid by using the refresh_pattern settings.

--
Henrik Nordstrom
Squid hacker
Daniel Feijo wrote:
> 
> Hi Henry:
> First of all, thank you for your time reading this note.
> 
> I'm a squid newbie and I'll make a short question if you agree.
> 
> I have an httpd server with 2 virtual host and have squid in other box that
> needs to accelerate inbout internet hits.
> I have squid 2.2 and all documentation I find is old.
> Do you know where can I find a guide to configure squid in this way?
> Even better maybe you can tell me me the tricks?
> 
> Thank you again,
> Best Regards
> Daniel
--
To unsubscribe, see http://www.squid-cache.org/mailing-lists.html
Received on Mon Sep 18 2000 - 15:13:47 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:55:21 MST