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 page for IP

Discussion in 'General Discussion' started by mschulz, Aug 27, 2005.

  1. mschulz

    mschulz Member

    Joined:
    Mar 4, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Let's say I have several virtual hosting sites on IP 1.2.3.4. Those all work fine, and are configured as virtual hosts in httpd.conf. What we'd like to do is have a site that comes up when 1.2.3.4 is entered into the browser. Any suggestions?

    Thanks!
    -Martin
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Create an account for it in WHM and then move its virtualhost container in httpd.conf to be the first one for that IP address. Apache will always display the first VirtualHost that it finds for a given IP address when browsed by IP address and not ServerName/ServerAlias.
     
Loading...

Share This Page