Turning off SSL For New Domain Redirects To Another Domain On Serer

PDW

Well-Known Member
Dec 29, 2003
139
3
168
So here is an odd dilemma that I am just not figuring out.
I have a new domain name I registered this weekend and it is being used to install a script that I want to run that the installation process required that SSL be off (for the installation process) and then I can turn it back on. Here's the issue, I create the new domain on WHM, turn off Auto SSL for that domain, Remove certificates for that domain, and then now when I go to that domain it reverts to another domain on the server.

I have gone through tweak settings and turned off the following
Generate a self signed SSL certificate if a CA signed certificate is not available when setting up new domains

Choose the closest matched domain for which that the system has a valid certificate when redirecting from non-SSL to SSL URLs. Formerly known as “Always redirect to SSL/TLS”

Non-SSL redirect destination (set to original domain)
SSL redirect destination (set to original domain)

Deleted Domain and put it back in, AutoSSL still installs certificate so I go in disable and remove the certificate it created
and it still redirects to another domain name on the server if SSL is not on.

Am I missing a setting?
 

ffeingol

Well-Known Member
PartnerNOC
Nov 9, 2001
827
346
363
cPanel Access Level
DataCenter Provider
I'm pretty sure you'd have to go into features and disable AUTOSSL if you don't wan it to create the SSL when you create the domain. Remember to turn it back on when you are done. As you said, you'd also need to go into tweak settings and make sure that generate self-signed is turned off also.
 

PDW

Well-Known Member
Dec 29, 2003
139
3
168
So I went ahead and disabled Auto SSL, terminated the account, recreated and no SSL installed by AutoSSL but website still redirects to the other domain on the server when using HTTP:// or https:// seems that since no SSL installed it is sending it to another domain name no matter what on the server
 

PDW

Well-Known Member
Dec 29, 2003
139
3
168
thanks for the suggestion, gave that a go and still same result. Got it on the second IP dedicated bring it up server still redirects to another domain name. And its not the host name its going to just another domain name on the server
 

cPanelRoman

Technical Analyst
Sep 6, 2018
22
0
76
Houston
cPanel Access Level
Root Administrator
Hello,

I believe the confusion comes from the following options:

Code:
Choose the closest matched domain for which that the system has a valid certificate when redirecting from non-SSL to SSL URLs. Formerly known as “Always redirect to SSL/TLS”

Non-SSL redirect destination (set to original domain)
SSL redirect destination (set to original domain)
The above options are in relation to cPanel services port 2083/2087, the above does not handle Apache redirections.

This is explained in our documentation Tweak Settings | cPanel & WHM Documentation

Thanks,
 

PDW

Well-Known Member
Dec 29, 2003
139
3
168
So what you are saying is that the tweak settings redirects have no bearing on why a domain name with no SSL certs installed is redirecting to another domain on the server. This is frustrating, been running a Cpanel server for almost 20 years and one should be able to turn off SSL and not force SSL on a single domain and not kill it sending you to another. I must be missing something maybe looking and trying for over 2 days is getting to me. that's why I finally turned to asking
Another note, if I take out the .htaccess fine it doesn't redirect but also doesn't find the account either.
 

cPanelRoman

Technical Analyst
Sep 6, 2018
22
0
76
Houston
cPanel Access Level
Root Administrator
Hello,

Thank you for the update.

That is correct, the redirections mentioned in the tweak settings are not related to Apache (Rewrite) redirection rules.

If you do not want to perform HTTPS redirects then you simply need to remove the HTTPS rewrite rules from the .htaccess file.

Can you share the redirect rules configure so we can try to point out which ones should be removed?

Finally, please note cPanel/WHM is not loading the wrong site, when Apache cannot find the correct HTTPS vhost (on port 443) it tries
to load any vhost with a valid certificate but this is normal Apache behavior.

Thanks,