[squid-users] how to redirect certain domains to a specific url?

Amos Jeffries squid3 at treenet.co.nz
Sat Sep 3 02:57:53 UTC 2016


On 2/09/2016 1:44 p.m., mabraFoo wrote:
> I need to redirect 3 https domains to a specific url
> 
> redirect all requests for these 3 domains:
> https://first.com

Registrant Organization: Sitestar Internet Services

> https://second.com

Registrant Organization: REFLEX PUBLISHING, INC.

> https://third.com

Registrant Organization: Third Dimension

> 
> To here:
> https://specific.com/xyz/index.html
> 

Registrant Organization: Specific Media, Inc.


The 'S' in HTTPS means secure and exists for a reason. It means there
are TLS requirements that have to be obeyed which HTTP does not require.

Unless the origin server you are redirecting the CONNECT tunnel to is
able to produce a valid TLS/SSL certificate for those domain names that
can be authenticated successfully you won't be able to do it.

If it does produce the right TLS details then:

 acl 3d dstdomain first.com second.com third.com
 cache_peer specific.com parent 443 0 originserver
 cache_peer_access specific.com allow CONNECT 3d
 cache_peer_access specific.com deny all
 never_direct allow CONNECT 3d

Amos



More information about the squid-users mailing list