Hostname and Main Domain
Hi again,
I may not have thought my setup through very well. When I setup my server I chose a hostname based on a domain I plan to use as my primary website:
server.domain.com
I then created an account for myself with the domain domain.com. When I browse to server.domain.com it shows the website I have setup at domain.com. I assumed (and hoped) that browsing to server.domain.com would show cPanel's default web page. The same thing happens when I visit my VPS IP (I only have 1 IP and cannot get any more for this VPS ... DigitalOcean).
I haven't installed any certificates yet, but I am concerned that if it is showing the contents of my main website that it may pull the wrong certificate when a client goes to
-
Hello :) You can ensure the hostname's VirtualHost is the first in your Apache configuration file (httpd.conf). You can typically rebuild the httpd.conf file to complete this task automatically: /scripts/rebuildhttpdconf
Thank you.0 -
Thanks for your help again, Michael. That did it :) How often will I need to do that to ensure server.domain.com shows the default page instead of my main website? 0 -
It should remain the first VirtualHost and display the default cPanel page without additional action. Thank you. 0
Please sign in to leave a comment.
Comments
3 comments