Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    151
    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,470
    Likes Received:
    21
    Trophy Points:
    463
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice