IP Leading To Domain

Discussion in 'Apache' started by skins4webs, Dec 16, 2007.

  1. #1
    I have a server with multiple domains and Apache brings me to one of my domains when I type in my IP. I want it to just bring up an apache page like http://72.167.113.21/

    How would I go about doing this?
     
    skins4webs, Dec 16, 2007 IP
  2. QuickFreeHost

    QuickFreeHost Well-Known Member Affiliate Manager

    Messages:
    483
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    120
    #2
    Have you setup your DNS records? What OS are you running? I dont see what you are trying to accomplish here.
     
    QuickFreeHost, Dec 19, 2007 IP
  3. abdussamad

    abdussamad Active Member

    Messages:
    543
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #3
    You'll have to modify your httpd.conf file. Its usually located in /etc/httpd/conf . Look for a line that says:

    
    namevirtualhost youripadress
    Code (markup):
    Then insert a new virtual host that points to the default apache page. This first virtual host after the namevirtualhost directive will become the default virtual host and will load if you visit just the IP address:

    
    <virtualhost youripaddress>
    documentroot /var/www/html/
    </virtualhost>
    
    Code (markup):
     
    abdussamad, Dec 19, 2007 IP
  4. blowingideas

    blowingideas Peon

    Messages:
    642
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    ^^ well said.
     
    blowingideas, Dec 20, 2007 IP