|
|||
|
Using CPanel with NAT - Urgent!
Hi all,
I have a really urgent problem if anyone can help me out I would seriously appreciate it. I have about 120 sites on different IP addresses. The IPs point to our hardware firewall and the firewall then NATs these IPs to our internal address. The internal address is a box that runs cpanel and has all the sites set to the boxes single IP. We cannot currently easily change this. So that allows our sites to look like they are on separate IP addresses to the outside world but they are all on one box and on one internal IP. Now when I add accounts to CPanel I have to then go into the DNS entry and change the internal IP address to the correct external IP I want to assign to that site. This works absolutely fine although it is a bit of a pain. The problem is that then if someone uses cpanel to add a subdomain etc. the apache configuration file is updated with the external ip address from dns rather than the internal ip address of the box. I need it to always put in the IP address assigned to the site rather than the IP assigned at the DNS level. This is the IP address shown when you list accounts. This must be a common problem? Is there a configuration option I can change so that this occurs? Or do I HAVE to create a script to go through the apache config etc. and correct the entries? Surely other people must use CPanel with this type of setup? Thanks in advance. Hope that all makes sense. Kind Regards, Mark |
![]() |
| Thread Tools | |
| Display Modes | |
|
|