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.

Different default page per IP address?

Discussion in 'General Discussion' started by Vliegtuig, Jan 21, 2010.

  1. Vliegtuig

    Vliegtuig Well-Known Member

    Joined:
    Jan 21, 2010
    Messages:
    74
    Likes Received:
    2
    Trophy Points:
    6
    Hi,

    Is it somehow possible to set different default web pages for different IP-addresses? Currently, our default page shows "this domain has been registered by <company name>", but obviously, this is not something we want to show for resellers, who want their own page (and host on their own IP-address).

    Any help is appreciated.

    Thanks.
     
  2. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    By default the shared IP address will show you the cPanel default page. The IPs assigned as dedicated IPs for the websites will show the respective website on browsing the IP address.

    If you want to have a separate page for the Resellers IP who uses the IP as a shared one, you will have to manually add a VirtualHost entry in the Apache configuration (httpd.conf) for the IP. Something like the following per Reseller IP address

    where, xx.xx.xx.xx is the resellers IP.

    Restart the httpd service once you edit the Apache conf file.
     
Loading...

Share This Page