Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Force SSL on Webmail via VirtualHosts?

Discussion in 'Security' started by Oluwatosin, Feb 25, 2018.

  1. Oluwatosin

    Oluwatosin Member

    Joined:
    Jul 1, 2017
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,884
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice