Re: [squid-users] httpd_accel two sites, two servers, one squid?

From: Henrik Nordstrom <hno@dont-contact.us>
Date: 26 Jun 2003 23:44:36 +0200

tor 2003-06-26 klockan 22.00 skrev Byron Friesen:
> Is it possible to set squid up so as to have squid act as a proxy for
> two seperate webservers, and have it cache both servers?

Yes.

httpd_accel_host your.main.web.site
httpd_accel_uses_host_header on

Then place all the domains you are accelerating in /etc/hosts with the
IP addresses of the real servers, and set up access controls to only
allow access to your real servers.

acl ourservers dst ip.of.real.server ip.of.another.server ...
acl port80 port 80
acl http protocol http

http_access allow http port80 ourservers
http_access deny all

Regards
Henrik

-- 
Donations welcome if you consider my Free Squid support helpful.
https://www.paypal.com/xclick/business=hno%40squid-cache.org
Please consult the Squid FAQ and other available documentation before
asking Squid questions, and use the squid-users mailing-list when no
answer can be found. Private support questions is only answered
for a fee or as part of a commercial Squid support contract.
If you need commercial Squid support or cost effective Squid and
firewall appliances please refer to MARA Systems AB, Sweden
http://www.marasystems.com/, info@marasystems.com
Received on Thu Jun 26 2003 - 15:46:04 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:17:39 MST