build httpd conf sub-domain with two IPs
Hello,
i want to build httpd conf to include a sub-domain that listens to two IPs 127.0.0.1 (for internal access) and xx.xx.xxx.xxx (for external access). how can i configure /var/cpanel/userdata/USERNAME/sub.exmple.com to have two IPs and when building using /scripts/rebuildhttpdconf i end up with something like the below?
ServerName sub.exmple.com
...
assigning two IPs, separated by space, in the "ip" field for sub.exmple.com file is causing a compile error .
Thanks
-
Hello :) Using multiple IP addresses in a single VirtualHost is not natively supported with cPanel. However, since this is for an internal IP address, have you considered setting up a NAT environment instead? It's documented here: cPanel - NAT Thank you. 0 -
thanks for the update. but the cPanel-Nat link you provided didn't work it redirects to "This topic does not exist" page 0 -
Hello, Thank you for reporting that. I believe this has to do because cPanel is in the middle of switching to a new documentation system. The correct link for 1:1 NAT can be found here. 0
Please sign in to leave a comment.
Comments
4 comments