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.

How to configure where additional IP points?

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

  1. piotrpawlowski

    PartnerNOC

    Joined:
    Sep 6, 2008
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    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
    Piotr
     
  2. FreedomBI

    FreedomBI Well-Known Member

    Joined:
    Jul 7, 2008
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    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.
     
Loading...

Share This Page