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.

Use name-based virtual hosting

Discussion in 'General Discussion' started by outeredge, Apr 27, 2007.

  1. outeredge

    outeredge Registered

    Apr 26, 2007
    Likes Received:
    Trophy Points:
    Hi Guys,

    Ok - so here's the problem. I am running my Cpanel on a VM which has the local host-only IP address of 172.16.32.XXX which I use Iptables/NAT on the host to forward it's own IP (87.XX.XX.XX) through to it.

    Everything works (i.e email, etc) however I have to manually edit the httpd.conf file to change the VirtualHost IP address for each domain to 172.16.32.XXX instead of the external one otherwise the sites will simply be forwarded to the apache/cpanel welcome page.

    If I change the IP address on Cpanel for the sites to the 172.XXX.XXX.XXX address then that in turn automatically affects the DNS records which of course doesn't work.

    Can anyone please help??


Share This Page