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


Reply via email to