I’m setting up Virtualmin to run several instances behind a load balancer. For Apache to work properly I’ve have to set the virtual hosts using *, instead of the IP, because each instance will have a different IP. Like this:
Thanks a lot Joe!
One more thing, I’ve manually changed the apache config to * for a virtualserver that has SSL enabled.
I’ve changed both *:80 and *:443.
But after that, Apache loads a wrong certificate, from a different domain. Is there anything else I need to do?
Thank you!
They all must be switched, or you’ll never be able to guess which one will get served. Apache has consistent logic for how it decides what domain is the “best match”, but nobody but the developer than implemented it will ever understand it.