I have a Linux CentOS 7.2 server with Apache 2.4 whose httpd.conf is created/maintained by WHM 60.0 build 31.
The httpd.conf file has a Virtual Host section for one of my websites that looks like:
<VirtualHost xxx.xxx.xxx.xxx:80>
...
</VirtualHost>
Everything runs fine.
Now, I need to allow an internal IP access to this Virtual Host. I know this can easily be done as described here,
VirtualHost Examples - Apache HTTP Server Version 2.4
in the third section (titled, "Serving the same content on different IP addresses (such as an internal and external address).") by modifying the httpd.conf file to look like:
<VirtualHost 192.168.0.1:80 xxx.xxx.xxx.xxx:80>
...
</VirtualHost>
However, I suspect WHM will overwrite this upon restarting the Apache web server, etc.
How can I accomplish extending a Virtual Host to an internal IP address within the confines of WHM controlling httpd.conf?
The httpd.conf file has a Virtual Host section for one of my websites that looks like:
<VirtualHost xxx.xxx.xxx.xxx:80>
...
</VirtualHost>
Everything runs fine.
Now, I need to allow an internal IP access to this Virtual Host. I know this can easily be done as described here,
VirtualHost Examples - Apache HTTP Server Version 2.4
in the third section (titled, "Serving the same content on different IP addresses (such as an internal and external address).") by modifying the httpd.conf file to look like:
<VirtualHost 192.168.0.1:80 xxx.xxx.xxx.xxx:80>
...
</VirtualHost>
However, I suspect WHM will overwrite this upon restarting the Apache web server, etc.
How can I accomplish extending a Virtual Host to an internal IP address within the confines of WHM controlling httpd.conf?