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.

Default path when IP is used

Discussion in 'General Discussion' started by webcatal, Dec 6, 2003.

  1. webcatal

    webcatal Member

    Joined:
    Apr 10, 2003
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    I have 4 IP addresses on my server that are used for different resellers. If I type in the IP by itself I get the first page that was setup on the resellers account. I don't want this to be this way. What I need to know is how to fix this or I need to know is where each of these default paths are for each IP so I can change where it points to. Anyone know what to do?
     
  2. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    You can just change the order of accounts in the httpd.conf file. The first account listed under the IP is the one that will show.
     
  3. webcatal

    webcatal Member

    Joined:
    Apr 10, 2003
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Got something to work

    I made a new <VirtualHost> with just the IP and the DocumentRoot along with the User and Group. Now when trying to access the IP it takes it to a path specified by me.
     
  4. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    That's another way to do it. I just mentioned the simpler option because tampering with the httpd.conf file can be risky. That's how I do it. I have an entry for any IP's that are not used for a dedicated IP site to control what visitors see when they try out the IP address.
     
Loading...

Share This Page