I have a dedicated Linux server and have set up 2 websites on it using one ip address. I have a domain name pointing to one website and no domain pointing to the second website. I need to know how to preview that website prior to pointing the domain name to it. I am migrating from shared hosting to dedicated and cannot move the domain name until I am certain the website works correctly. The server is with GoDaddy, using simple control panel. They do not have any easy option for previewing websites on their dedicated server. I have tried modifying the hosts file on my pc like below, but that points me to the root of the server... NOT the root of the website within the server. ipaddress mydoman.com ipaddress www.mydomain.com How in the world do you preview your site on a dedicated server when there are more then one website on it?? Any help would be greatly appreciated. Thanks!
You'd have to slightly modify your httpd.conf file to make it work as desired. Feel free to hit me up if you still need help
You need to make sure your Apache virtual host config is set up for each site to answer to those names. In particular, specify ServerRoot and ServerName appropriately for each virtual host (site). See docs below with simple example that should fit your situation nicely: http://httpd.apache.org/docs/2.2/vhosts/examples.html