Re: [squid-users] How to set up a reverse proxy server over SSL?

From: Henrik Nordstrom <[email protected]>
Date: Mon, 03 Jul 2006 07:34:54 +0200

mån 2006-07-03 klockan 09:17 +0530 skrev Visolve Squid:

> Hello Peng,
>
> The following steps are used to configure the squid-3.0 with SSL
>
> Compile squid with the ssl support option
>
> ./configure --prefix=/usr/local/squid --enable-ssl
>
> Edit the squid configuration for squid with SSL support (Reverse proxy)
>
> https_port 443 protocol=http
> cert=/path/to/server/certificate/server_cert.pem
> key=/path/to/server/key/server_priv_key.pem vport=<port in which the
> back end server listen>

almost... you should primarily use defaultsite=your.main.site to enable
reverse proxy mode and maybe vhost is you need to support domain based
virtual hosting. vport is normally not needed. The port number is
specified in cache_peer.

As hinted above you also need a cache_peer line defining the origin
server address and port.

> acl SSL method CONNECT
> never_direct allow SSL

The CONNECT mthod is not applicable to reverse proxies and should
probably be denied entirely...

Regards
Henrik

Received on Sun Jul 02 2006 - 23:35:00 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Aug 01 2006 - 12:00:01 MDT