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.

shared ip problem

Discussion in 'General Discussion' started by 007007, Jul 14, 2007.

  1. 007007

    007007 Registered

    Joined:
    Dec 23, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    when i open any one of my ip which set as shared (main)ip.

    it is a site not cpanel default.but a one site host on it.

    how can i set the shared ip cpanel default.
     
  2. jandafields

    jandafields Well-Known Member

    Joined:
    May 6, 2004
    Messages:
    426
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    You can make the main IP point anywhere you want by modifying httpd.conf
     
  3. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    You are not supposed to access shared hosting accounts by IP address ...

    However, that said, Apache displays the first site found that matches
    the IP address you attempted to access as listed in the httpd.conf file.

    If the "htdocs" default page is setup as the first site in your httpd.conf
    then you will see the Cpanel default page when you attempt to access
    the server from the web by IP address.

    If another site is listed first in your httpd.conf file though, that site will
    be displayed when a numeric IP address is requested.

    All you have to do to make a specific site the default site for any IP
    is simply make sure it's vhost section in the httpd.conf file is listed
    sequentially before any other vhosts with the same IP address.

    PS: Don't forget to restart Apache after making any changes like this.
     
  4. jandafields

    jandafields Well-Known Member

    Joined:
    May 6, 2004
    Messages:
    426
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    Many people like to intentionally put a website at the main IP so when someone inadvertantely goes to it, they get something other than the default "Apache is working properly" website. There is nothing wrong with putting a website at the main shared IP address.
     
  5. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    Apparently you stopped reading my last post after the first sentence ... ROFL LMAO!!!

    (Why don't you try actually reading the post before responding?)
     
Loading...

Share This Page