How to configure where additional IP points?

piotrpawlowski

Member
PartnerNOC
Sep 6, 2008
12
0
51
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
 

FreedomBI

Well-Known Member
Jul 7, 2008
65
0
56
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.