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.

Main Shared IP

Discussion in 'General Discussion' started by MakassarNET, Feb 12, 2005.

  1. MakassarNET

    MakassarNET Well-Known Member

    Joined:
    Dec 6, 2004
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    Im wondering why if I try to open my server main shared IP in my browser, the IP bring me to one of my customer website whos using this shared IP. This IP it supposed to be a shared IP, so I would like to ask if anyone knows who to block or bring an HTTP request to the IP directly or maybe when someone try to open the main shared IP it will bring them to my hosting website instead of my customers website???

    Best Regards,
    Bryan
     
  2. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Edit the httpd.conf file and make the first VirtualHost statement point to your web hosting site.
    Restart Apache.
     
  3. MakassarNET

    MakassarNET Well-Known Member

    Joined:
    Dec 6, 2004
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    I have do as you told me but nothing change.
     
  4. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    site you want displayed must be displayed first after the ip

    you must restart apache after the changes are made
     
  5. djmerlyn

    djmerlyn Well-Known Member

    Joined:
    Aug 31, 2004
    Messages:
    203
    Likes Received:
    1
    Trophy Points:
    16
    Cool!

    I had to do some digging for this, but it was exactly what I needed :D
     
  6. gorilla

    gorilla Well-Known Member

    Joined:
    Feb 3, 2004
    Messages:
    699
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Sydney / Australia
    usually what happens is that the first site you install on a shared IP seems to be the default one, so the way to change that use sawbuck and dalems guidelines.

    Just to rehash that for other newcomers
    log into root using putty (for the windows user)
    Type
    pico /etc/httpd/conf/httpd.conf
    change the location of your default site on the shared IP to be the first one
    save by Ctrl+x , Y and enter
    and restart with
    /etc/rc.d/init.d/httpd restart
     
Loading...

Share This Page