The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

I need a very easy answer

Discussion in 'General Discussion' started by GlobalPN, Nov 17, 2003.

  1. GlobalPN

    GlobalPN Member

    Joined:
    Apr 6, 2003
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Ok, My main IP is not pointing to my main site but to another clients site. How can I go about changing this so if somebody types in the IP it will forward to my site and not theirs? Thank you for your time :).
     
  2. RaveKnights

    RaveKnights Well-Known Member

    Joined:
    Nov 5, 2003
    Messages:
    81
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Some Where Out There!
    Make sure that inside your httpd.conf your website is first host or you can do another alternative such as

    Inside your httpd.conf make sure your first virtual host entry looks like this:



    Edit this to match your servers main ip and server host name.

    <VirtualHost youriphere>
    BytesLog domlogs/yourhost.namehere.com-bytes_log
    ServerName yourhost.namehere.com
    DocumentRoot /usr/local/apache/htdocs
    </VirtualHost>



    Now edit your /usr/local/apache/htdocs index page and have a redirect to your web site.

    This is the only way I can think of so if any one else has any ideas go ahead and spit
    them out.


    RaveKnights
     
Loading...

Share This Page