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!

HSTS on server host name

Discussion in 'Security' started by baritoneuk, Sep 11, 2014.

  1. baritoneuk

    baritoneuk Member

    Jul 6, 2010
    Likes Received:
    Trophy Points:

    I'm still a newbie, so apologies if I'm asking a silly question- my host fully manages my server.

    I've recently looked at all our HTTPS sites to see how I can enhance the security further. They now all score A+ with the SSL Labs tool- basically due to changing the ciphers in WHM and setting a Strict Transfer Security header in the sites .htaccess files:

     <IfModule mod_headers.c>
        Header set Strict-Transport-Security max-age=16070400;
    The HSTS header ensures that future connections are only done over HTTPS:

    It's not a massive deal, but I am wondering how I can do that with my server host name. Because there isn't a website there (and I don't think you can have a website on your server host name anyway) I can't set an .htaccess rule. In fact, I'm not sure Apache is involved at all with this.

    Is there a way I can set the header when accessing my server, so that it gets an A+ in SSL Labs? It's not a big deal, but it would look good.
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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