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.

Disable Hosts Shared IP

Discussion in 'General Discussion' started by Mini, Sep 27, 2005.

  1. Mini

    Mini Well-Known Member

    Joined:
    Mar 4, 2005
    Messages:
    98
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    When I access my main shared IP address (for VHosts) I get a website, I do not wish this to happen. I'd rather get a "Nothing is configured at this address............" page.

    How would I achieve this?

    Mini
     
  2. Mini

    Mini Well-Known Member

    Joined:
    Mar 4, 2005
    Messages:
    98
    Likes Received:
    0
    Trophy Points:
    6
    Anyone?

    Mini
     
  3. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You should configure a VirtualHost container in the same manner as the one that is created for the servers main IP address in httpd.conf and make sure that it appears before any of the client VirtualHosts.
     
  4. Mini

    Mini Well-Known Member

    Joined:
    Mar 4, 2005
    Messages:
    98
    Likes Received:
    0
    Trophy Points:
    6
    How do I make a VHost container?

    Mini
     
  5. aby

    aby Well-Known Member

    Joined:
    May 31, 2005
    Messages:
    638
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    A sample virtual host container should look like this in your httpd.conf

    <VirtualHost X.X.X.X>
    BytesLog domlogs/one.yourserver.bytes_log
    ServerName yourservername.com
    DocumentRoot /usr/local/apache/htdocs
    </VirtualHost>
     
Loading...

Share This Page