Re: [squid-users] How to redirect http://gmail.com to https://gmail.com

From: Amos Jeffries <squid3@dont-contact.us>
Date: Tue, 18 Dec 2007 00:20:07 +1300

Amos Jeffries wrote:
>> Dear All,
>> I would like to redirect http://gmail.com to https://gmail.com
>> because http://gmail.com was banned by our ISP
>> But they allow https://gmail.com
>> User only know http://gmail.com but when they visit, it was banned.
>> Almost the time, I have to go to user and say to use https://gmail.com ..
>>
>> Any suggestions is appirciated
>>
>
> Two approaches:
>
> 1) automatic teaching clue-by-4 stick for your users:
>
> acl badGmail dstdomain gmail.com
> acl HTTP proto HTTP
> deny_info http://yourhostname/gmail_is_broken.html badGmail
> http_access deny HTTP badGmail
>
>
> 2) leave the peons ignorant and MAKE it work:
>
> acl badGmail dstdomain gmail.com
> acl HTTP proto HTTP
>
> cache_peer gmail.com 443 0 no-query originserver

Sorry I forgot to add there may be ssl* options needed for SSL traffic
between squid and the gmail HTTPS server.

> cache_peer_access gmail.com allow badGmail
> cache_peer_access gmail.com deny !badGmail
> never_direct deny HTTP badGmail
>

Amos
Received on Mon Dec 17 2007 - 04:20:07 MST

This archive was generated by hypermail pre-2.1.9 : Tue Jan 01 2008 - 12:00:02 MST