Hostname and A-record
I have a question that I hope you guys/gals could help me with.
When setting the hostname on the server I also need to set the A-Record for that hostname in the DNS Manager.
So if my hostname is srv1.example.com I need to point srv1 to my server IP address.
I am curious if I am hosting multiple websites on the server what will people see if they visit srv1.example.com? Would seem weird they saw some client's site
Thank you in advance
Philip
2 Replies
In Apache it displays the first web site that appears alphabetically in your sites-enabled directory. You can control this by creating a vhost file for your IP address and have it display anything you want (such as a blank page) or redirect to the web site you want to display as the default.
I am using ServerPilot so that is why I checked their support for vhost or similar and stumbled upon the above. That would be suitable to make a custom page.
Appreciate the help!