I need to build a reverse proxy to a couple of our developers laptops. I have created a generic hostname, and use the developers laptopnames as virtual folders. Config looks like this:
<VirtualHost 192.168.0.11:443>
ServerName developer.contoso.com
ProxyRequests Off
ProxyPreserveHost On
SSLEngine On
SSLProxyEngine On
SSLCertificateFile "c:/Apache24/conf/ssl/contoso.crt"
SSLCertificateKeyFile "c:/Apache24/conf/ssl/contoso.key"
SSLCertificateChainFile "c:/Apache24/conf/ssl/verisign.crt"
CustomLog "|c:/Apache24/bin/rotatelogs.exe ./logs/c4o.log 10M" combined
<Location /PC1234/service>
ProxyPass http://pc1234.contoso.com:8070/service/
ProxyPassReverse http://pc1234.contose.com:8070/service/
</Location>
<Location /PC5678/service>
ProxyPass http://pc5678.contoso.com:8070/service/
ProxyPassReverse http://pc5678.contose.com:8070/service/
</Location>
</VirtualHost>
After restarting the HTTPD everything works as expected and https://developer.contoso.com/PC1234/service is publicly available, until the developers laptopgets another IP address because of a network change. How do I tell HTTPD (on Windows) to regularly flush its DNS cache and resolve the laptop FQDN from our DNS servers again?
Just to be sure: Windows itself knows the new IP address; when I ping the PC1234.contoso.com I always get the proper IP address. Thanks!