redirect to specify site on SSL

mahdy_sharifi

Well-Known Member
Feb 26, 2012
220
1
68
cPanel Access Level
Root Administrator
Hello :

on our server , when open any domain (eveydomin on server) with https this site redirect to specify another domain on server , all domain with https open on any specidy domain. only when use https.

How can resolve this ?
 

MikeDVB

Well-Known Member
PartnerNOC
Jun 4, 2008
220
6
68
Indiana, USA
Create a self-signed SSL certificate for the individual domains and then install it. This will show an SSL warning but, at least, once accepted it will drop you to the correct site/account.

It would be best, imho, if there were default virtual hosts for port 443 so that, if an SSL was not installed on an account, perhaps it could auto-redirect internally to the non-SSL [port 80] version.

I believe I've asked cPanel for something like this in the past but never followed up on it as rarely is it an issue. Most people don't take a site and throw "https" in front of it manually.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello :)

The websites will display the SSL content of the primary SSL certificate installed on the IP address. You can change the "Primary" certificate installed on an IP address by using the "Make Primary" option in:

"WHM Home » SSL/TLS » Manage SSL Hosts"

Some hosts prefer to use only dedicated IP addresses for SSL certificates to avoid this issue, or they install a SSL certificate for the hostname and make it the primary certificate.

Thank you.