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!

How to configure where additional IP points?

Discussion in 'General Discussion' started by piotrpawlowski, Aug 27, 2011.

  1. piotrpawlowski

    piotrpawlowski Member PartnerNOC

    Sep 6, 2008
    Likes Received:
    Trophy Points:
    Dear all,

    On one of my server I have following situation:
    One of my client bought dedicated IP, separated to main server IP. He has several domains on this IP address. Thing is, that he would like to have such solution, that when somebody enters his IP via web browser, content from /home/user/public_html directory should be returned.
    Currently, when my client adds new domain, his IP points to this catalouge, where new domain points (sic!).
    Question is: if there is a way in cPanel to configure Vhost for IP? If yes, please let me know how to configure it properly.
    Thank you in advance for any help and tips.

    Best Regards
  2. FreedomBI

    FreedomBI Well-Known Member

    Jul 7, 2008
    Likes Received:
    Trophy Points:
    I believe that if you copy the config for the site you want to appear and put it in pre_virtualhost_global.conf, apache will see that first, and use that when someone goes directly to the IP.

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