[squid-users] vhost for reverse proxy - two web applications with one Squid

From: Michael Grimm <michael.h.grimm_at_googlemail.com>
Date: Fri, 3 Sep 2010 09:53:34 +0200

Hi,

I am currently using squid 3.0 STABLE19 with the following working config:

access_log /var/log/squid/access.log squid

https_port 443 accel
cert=/etc/ssl/reverse_proxy/server1.mydomain.de.cert
key=/etc/ssl/reverse_proxy/server1.mydomain.de.key
defaultsite=server1.mydomain.de

cache_peer 192.168.1.100 parent 8080 0 originserver no-query
name=server1 forceddomain=server1.mydomain.de

acl reverse_server1 dstdomain server1.mydomain.de

http_access allow reverse_server1
http_access deny all

cache_peer_access server1 allow reverse_server1
cache_peer_access server1 deny all

never_direct allow all

Now I want to integrate a second server running a different web
application in the same config.
The second server should answer over server2.mydomain.de.

I know that there is a vhost functionality in Squid but I just don’t
understand how to use it in this case.
Does this work at all? I could install a second squid for this but
then I would have to use my last precious external IPs (My precious!
:-).

Thanks in advance

Michael
Received on Fri Sep 03 2010 - 07:53:36 MDT

This archive was generated by hypermail 2.2.0 : Mon Sep 13 2010 - 12:00:02 MDT