Re: [squid-users] reverse proxy with different ports

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Tue, 9 Sep 2003 11:35:57 +0200

On Tuesday 09 September 2003 09.58, laurent.derrien@gouv.nc wrote:
> Hello,
>
> I have a question about accel mode special configuration...
> Is it possible to have this configuration with SQUID3-PRE3 :
>
> User -----[https on port 1443]-----> Reverse Proxy ------[http on
> port 80]------> Original server
> User -----[https on port 2443]-----> Reverse Proxy ------[http on
> port 81]------> Original server
>
> Both links through the same Squid ?

Yes.

> Should I write a special redirector ?

With Squid-2.5 a redirector is needed. Squid-3 will do this nicely
without the help of a redirector.

> If it's too hard, I could work with this other configuration :
>
> User -----[https on port 1443 to virtual server name1]----->
> Reverse Proxy ------[http on port 80]------> Original server
> User -----[https on port 1443 to virtual server name2]----->
> Reverse Proxy ------[http on port 81]------> Original server

Same problem basic problem..

> https_port 1443 defaultsite=original-site cert=rproxy.cert

This will make the URLs accepted by Squid look like
https://original-site/path/to/requested/document

your acls need to match this.

If you want the https_port to support virtual domains then you need to
use the vhost directive, which will make the URLs read like
  https://requested-domain-name/path/to/requested/document

and again your acls need to match this.

When using the vhost directive the defaultsite= option just specified
the host name to assume if no host name was given in the request sent
by the client.

Regards
Henrik

-- 
Donations welcome if you consider my Free Squid support helpful.
https://www.paypal.com/xclick/business=hno%40squid-cache.org
If you need commercial Squid support or cost effective Squid or
firewall appliances please refer to MARA Systems AB, Sweden
http://www.marasystems.com/, info@marasystems.com
Received on Tue Sep 09 2003 - 03:36:16 MDT

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