I've looked at quite a few posts on this site that have helped me with configuring a VirtualHost in apache to reverse proxy incoming host headers to the proper internal web server.
Yet, when I change the settings in the file httpd-vhosts.conf, it takes hours, sometimes days for it to actually show the change. Obviously it makes testing impossible. For example, this is working:
<VirtualHost *:*>
ProxyRequests On
ProxyPreserveHost On
ServerName www.mydomain.com
ProxyPass / http://192.168.1.211
ProxyPassReverse / http://192.168.1.211
</VirtualHost>
but if I change it to this:
<VirtualHost *:*>
ProxyRequests On
ProxyPreserveHost On
ServerName www.mydomainthatdoesnotexist.com
ProxyPass / http://192.168.1.211
ProxyPassReverse / http://192.168.1.211
</VirtualHost>
It still goes uses www.mydomain.com.
To try and get apache to re-read the changes, I ran httpd -k restart and httpd -k stop/httpd -k start, but they don't have any effect. Only after a few hours does the change ACTUALLY happen.
Even if I change the IP in the Virtualhost block, it still goes to 192.168.1.211:
<VirtualHost *:*>
ProxyRequests On
ProxyPreserveHost On
ServerName www.mydomain.com
ProxyPass / http://192.168.1.212
ProxyPassReverse / http://192.168.1.212
</VirtualHost>
What command will make the apache config reflect those changes? It seems something is getting cached?