SSL for a single domain works for all sites on the server

watchtime

Registered
Oct 28, 2013
4
0
1
cPanel Access Level
Root Administrator
Hello!

On the server (VPS c CentOS 6.5 and cPanel) installed self-signed SSL certificates for domain.com (is simple site) and sub.domain.com (is panel WHM/cPanel). So, when you open any site to HTTPS server site opens domain.com - with pictures and stuff. (Example https://other_site.com). IP is only one. That is not configured correctly? How to disable HTTPS for all domains where there is no actual certificate? (cPanel/WHM has in menu "Manage SSL Hosts" the domains for which the certificate is created.)
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Hello :)

If the account is assigned a shared IP address, and a SSL certificate is installed on that IP address, than any secure request to a domain name on that IP address will load the contents of the domain name the certificate is installed for. This is by design. You will need to assign a dedicated IP address to the account that uses the SSL certificate if you don't want that certificate applied to the other domain names on it's IP address.

Thank you.
 

watchtime

Registered
Oct 28, 2013
4
0
1
cPanel Access Level
Root Administrator
How I can install into file .htaccess for dedicated IP or domain for which created self-signed SSL certificate? Or how I can disable https for all domains on server, which not has SSL?
Now I see, that for search systems exist bad situation. Because, example Google and Bing indexing sites on the server, and creating wrong mirrors. For good site is added https with other content, and etc.
Maybe I can disable HTTPS for each sites on the server without SSL? How?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
You will need to assign a dedicated IP address to the account with a SSL certificate via:

"WHM Home » Account Functions » Change Site’s IP Address"

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
But if IP on the server only one?
You will need to purchase an additional IP address and assign it to the account. Or, you could generate/install a self-signed certificate for each domain name on the server (Assuming your server supports SNI).

Thank you.