CentOS 7.x
Apache (httpd)
External NAT: 10.140.x.x
Internal IP: 10.105.x.x
When trying to reach the apache server on https://10.140.x.x, it tries to resolve the hostname in the lower left corner of firefox. This won't work because we can't control DNS for the NAT network. How do I configure Apache to listen on an IP that obviously doesn't exist on any interface of the box?
I've tried editing /etc/httpd/conf/httpd.conf
ServerName 10.140.x.x:80
and
/etc/httpd/conf.d/ssl.conf
<VirtualHost _default_:443>
# General setup for the virtual host, inherited from global configuration
DocumentRoot "/var/www/html"
ServerName 10.140.x.x:443
But these edits don't seem to do anything. We are able to reach the site on the same internal network.
10.140.x.x
, so at least Chromium consider it to be a domain name rather than an IP address.