I've had it happen from time to time that the "Services / Configure Website" link in Virtualmin opens the Apache config for the wrong domain.
(Unfortunately I haven't been able to reproduce this behavior exactly so far, last time it happened it was after I added a new Apache module - namely a bandwidth limiter - and manually added directives for it to a virtual server. Afterwards, most Virtualmin domains led to the wrong Apache virtual server.)
I found that in this case it helps to empty the directory /etc/webmin/virtual-server/links-cache
and restart Webmin.
Actually I vaguely remembered that when I had this issue last time doing that fixed the problem. If I hadn't remembered that, I'd probably have gotten quite frustrated with this problem again and opened a support request. :)
So my suggestion would be to add an "official function" to Virtualmin to clear this cache, and put an info in some prominent place, like "if the Configure Website links lead to the wrong server, click here:"
Comments
Submitted by JamieCameron on Sat, 02/25/2012 - 11:41 Comment #1
Probably a better option would be for Virtualmin to clear this cache automatically when the Apache config is changed ... or be more resistant to changes in the Apache config format.
I will fix this in the next release.
Submitted by Locutus on Sat, 02/25/2012 - 11:43 Comment #2
Yes, agreed! And thanks!