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!

HTTPS Sites Without SSL Redirecting To Site With SSL

Discussion in 'Security' started by fidividi, Apr 6, 2019.

  1. fidividi

    fidividi Well-Known Member

    Joined:
    Feb 15, 2013
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    My topic is the same as HTTPS Links for Sites Without AutoSSL Redirecting to Site With AutoSSL? but that thread is too old to reply to.

    So my topic is exactly the same as above thread, but as a different or at least one workaround that I am hoping works for me - I really don't find the proposed workaround about IP allocation for SSL & non-SSL accounts a real practical workaround - I tried to create an account on the top of the list of all accounts, something that starts with 0-a.HOSTNAME.COM and that way if that vhost is first in the list in httpd.conf as the first vhost:443 Apache will load that webpage for AccountWithNoSSL.com and on 0-a.HOSTNAME.COM I just made a parked index.html page saying there's no website at this address.
    Only problem, httpd.conf vhost:443 for 0-a.HOSTNAME.COM is not built/served on top thus still loading someone else's website.

    But I really thing (while I understand this is out-of-box how apache works) cPanel should have a way of handling this - how? default parked pages on https when AutoSSL is not enabled for a website.
     
  2. dalem

    dalem Well-Known Member PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,909
    Likes Received:
    127
    Trophy Points:
    368
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    copy the Vhost container for
    0-a.HOSTNAME.COM to

    the pre main include or the pre virtual host include

    then it will load it first and it wont be overwritten when your httpd.conf gets rebuilt
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,476
    Likes Received:
    507
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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