Hostname displays a website on the VPS

Phlong

Member
Dec 30, 2013
7
0
1
cPanel Access Level
Root Administrator
Hi there,
Right now I'm having a strange issue with my VPS that uses cPanel. I have like five websites on the VPS and one hostname (domain) for the nameservers and the VPS.
So let's say I have these websites:

domain1.com
domain2.com
domain3.com

and I access the WHM Login Panel via vps.myvpsdomain.com:2087
All works fine using "vps.myvpsdomain.com:2087" to login.
However, when I visit "vps.myvpsdomain.com" only (without the port), it shows me the website domain1.com in the browser although I didn't even visit it! I'd actually prefer if I enter "vps.myvpsdomain.com" only, it should show the login panel or redirect to something else.

Hopefully someone can help me

Thanks in advance!

-Phlong
 

cPanelMichael

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

It's simply showing you the first VirtualHost on that IP address. Try rebuilding the Apache configuration file to see if that helps:

Code:
/scripts/rebuildhttpdconf
Thank you.
 

Phlong

Member
Dec 30, 2013
7
0
1
cPanel Access Level
Root Administrator
Hello :)

It's simply showing you the first VirtualHost on that IP address. Try rebuilding the Apache configuration file to see if that helps:

Code:
/scripts/rebuildhttpdconf
Thank you.
Hi,
Thanks for the reply. I just did that and now nothing is working. Cloudflare reports the the webhost is down although the VPS is online. Also I can't access the websites directly via IP/~user/
I'll contact my Hosting Provider now and see if they can help me.

-Phlong
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463