Hostname displays a website on the VPS
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
-
Hello :) It's simply showing you the first VirtualHost on that IP address. Try rebuilding the Apache configuration file to see if that helps: /scripts/rebuildhttpdconf
Thank you.0 -
[quote="cPanelMichael, post: 1540212">Hello :) It's simply showing you the first VirtualHost on that IP address. Try rebuilding the Apache configuration file to see if that helps: /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. -Phlong0 -
Rebuilding the Apache configuration file should not cause those types of issues unless you have made custom modifications to your Apache configuration file without saving them the correct way. You can find documentation on how to save your custom changes at: Changes Contained Outside a VirtualHost Directive Changes Contained Within a VirtualHost Directive Thank you. 0 -
Rebooting the VPS fixed all the issues. Thanks 0
Please sign in to leave a comment.
Comments
4 comments