HTTPS Sites Without SSL Redirecting To Site With SSL

fidividi

Well-Known Member
Feb 15, 2013
48
0
56
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.
 

dalem

Well-Known Member
PartnerNOC
Oct 24, 2003
2,983
159
368
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
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston