Hi Willy,
Thanks a lot.
Before checking your mail I tried different options and was able to redirect
http request to https. Following is the acl used.
I presume hdr_dom(host) will have same effect as the below acl.
stunel secure
bind 127.15.0.1:1
acl host_mysrv hdr -i server.example.com
acl url_slash url /
acl via_stunnel dst_port 1
redirect prefix https://server.example.com/Web if !via_stunnel host_mysrv
url_slash
Regards,
Avinash Gaonkar
> On Thu, Jul 21, 2011 at 02:11:00PM +0530, Avinash Gaonkar wrote:
>> Hi Willy,
>>
>> Thanks a ton for the solution that worked for example.com, but when I
>> tried
>> it for a subdomain it failed.
>>
>> I wanted to redirect server.example.com to https://server.example.com,
>> but
>> it didn't worked.Following is the acl used.
>>
>> acl host_example.com hdr(host) -i server.example.com
>> acl url_slash url /
>> acl via_stunnel dst_port 81
>> redirect location https://server.example.com/MyServer if !via_stunnel
>> host_example.com url_slash
>
> Then use "hdr_dom(host) -i example.com", it will match anything containing
> "example.com" in the domain.
>
> Regards,
> Willy
>
Received on 2011/07/22 13:14
This archive was generated by hypermail 2.2.0 : 2011/07/22 13:30 CEST