Preview website on dedicated server with no domain name?

Discussion in 'Site & Server Administration' started by AFemaleProdigy, Apr 25, 2011.

  1. #1
    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!
     
    AFemaleProdigy, Apr 25, 2011 IP
  2. saqib889

    saqib889 Peon

    Messages:
    1,291
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    ipaddress/~username
     
    saqib889, Apr 25, 2011 IP
  3. Intermg

    Intermg Active Member

    Messages:
    1,282
    Likes Received:
    11
    Best Answers:
    1
    Trophy Points:
    65
    #3
    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 :)
     
    Intermg, Apr 25, 2011 IP
  4. Tritontrax

    Tritontrax Peon

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    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
     
    Tritontrax, Apr 28, 2011 IP