Force SSL on Webmail via VirtualHosts?

Oluwatosin

Member
Jul 1, 2017
8
0
1
Lagos, Nigeria
cPanel Access Level
Root Administrator
Hi Everyone,

My server is setup with Varnish which makes this a little trickier. I'm looking for a way to redirect http://webmail.domain.com to https://webmail.domain.com

On WHM:
Always redirect to SSL/TLS” is checked
Require SSL for cPanel Services is checked

Since Varnish is installed and Domain forwarding doesn't seem to work, I guess the other option is to enforce this redirection via the Apache Virtualhosts. Can someone help or point me in the right direction ?


Stuffs I have also tried that didn't work
**Domain forwarding via Cloudflare pagerules
**HTTPs redirection via Htaccess
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,227
463