OK, this is a real odd one and I can’t find the solution.
I have the GPL version (all updated) set up on a server. It’s hosting two top-level virtual servers (example.COM and example.NET), one sub-server and three aliases. These all work just fine. I have example.NET explicitly set up as the “Default website for IP address” at Virtualmin -> example.NET -> Server Configuration -> Website Options.
I have admin.example.COM pointing to the server’s IP address. When I access https://admin.example.COM:10000 I get the Webmin/Virtualmin log-in page, and I can log in with no problem. If I access http://admin.example.COM (note no HTTPS and no port number) I get redirected to the log-in page of my discrete Virtualmin Pro server. No idea why this is. There is nothing in the DNS of example.COM pointing to the IP address of the Pro server.
The GPL server was set up from scratch, so I don’t know how there would be a redirect to the old Pro server configured anywhere. I have checked a number of index.php and index.html pages on the server for references to the URL of the Pro server, and haven’t found anything.
The reason this is an issue is that when I try to renew the LE certificate for admin.example.COM, the validation process is redirected to the old Pro server where, of course, the validation files don’t exist.
Is there anywhere else I should be looking for redirects to the old Pro server?
Hi @toreskev, thanks for your suggestion. I looked at System Settings -> Server Templates -> Apache website, but I don’t see what you might be referring to. Is it somewhere else?
I believe I’ve found where the errant configuration is. It’s in /etc/httpd/conf/httpd.conf. Not sure how the URL of the old Pro server got in there (must have been something I did), but I’ve removed it and replaced it with https://admin.example.COM:10000. Now I’ll just wait for LE’s cache of the redirect to expire and try again.
That’s probably what you were referring to @toreskev, so thanks.