We use Virtualmin on Amazon EC2, effectively for the most part. The big annoyance is that when creating a new virtual server or subserver, the private IP address of the Amazon instance is used. This is non-functional because you usually get a new IP address when the instance is stopped for any length of time and then restarted. The “Elastic” IP address is a better choice, but even that can change for strategic reasons, or likely in a scaling situation. The BEST choice is to use * to wildcard the IP address.
I have read this thread that seems to address the issue:
https://www.virtualmin.com/node/22766
But in fact it doesn’t actually solve the problem. I have it set as NameVirtualHost *:80, and it’s the only one present in the configuration. I still get a specific IP address for new servers, and not even the right one (anymore).
How to address this?
Currently, we have to wait until low traffic times to create sites/subsites, and then:
- Use virtualmin to create the server
- go to Apache config and load the .conf file for the new site
- change <VirtualHost xxx.xxx.xxx.xxx:80> to <VirtualHost *:80>
- restart apache
I have tried setting the IP address of new servers as *, but that doesn’t work.