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

From: Michael Grimm <michael.h.grimm_at_googlemail.com>
Date: Mon, 13 Sep 2010 11:22:52 +0200

Hi Amos,

thanks for the help. If I understand you correctly this would result
in a config like the one below.
But how do I include a second certificate? Do I need to use a wildcard
cert? I believe I can't use the https_port twice.

Thanks Michael

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

https_port 443 vhost
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
cache_peer 192.168.1.101 parent 8080 0 originserver no-query
name=server2 forceddomain=server2.mydomain.de

acl reverse_server1 dstdomain server1.mydomain.de
acl reverse_server2 dstdomain server2.mydomain.de

http_access allow reverse_server1
http_access allow reverse_server2
http_access deny all

cache_peer_access server1 allow reverse_server1
cache_peer_access server1 deny all

never_direct allow all
Received on Mon Sep 13 2010 - 09:22:59 MDT

This archive was generated by hypermail 2.2.0 : Wed Sep 15 2010 - 12:00:03 MDT