Website Loads the Content of another website if ssl is not installed

azadhussnain

Active Member
May 28, 2020
27
0
1
India
cPanel Access Level
Root Administrator
Hello ! I am facing an weird issue in my server.
Actually, Yesterday one customer purchased hosting from me but when i open his website ( suppose example.com ) then it shows the content of another website hosted on my same server ( suppose example2.com ).
and when i open example.com with https:// then my chrome browser shows an SSL error that example.com is using ssl from *.example2.com

and when i installed SSL on example.com then it's working properly and loading the content of example.com

i think it's an SSL issue , i am using Let's Encrypt AutoSSL
anyone can tell me how to fix this issue? because it looks weird .
 

kodeslogic

Well-Known Member
Apr 26, 2020
237
76
103
IN
cPanel Access Level
Root Administrator
If the accounts example and example2 are assigned a shared IP address, and a SSL certificate is installed on example2.com only, then any secure request to a domain name example.com on that IP address will load the contents of the domain name the certificate is installed for(example2.com). This is by default behavior.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
4,151
525
273
cPanel Access Level
Root Administrator