virtual hosts for usermin and webmin/virtualmin

hey I found the following code, but was wondering if there was a way to adapt it so that all virtual domains are able to access it, not just one. I would like to make it so that virtualmin/webmin and usermin can be accessed via a virtual host and not have to type in the port. I found the following code on another site. could this be adapted to use like a domain variable or something like that?

<VirtualHost default>
ProxyPass / http://localhost:20000/
ProxyPassReverse / http://localhost:20000/

found at for usermin and for webmin


There may actually be an easier way – recent versions of Virtualmin set it up such that you can go to either of these URL’s:

And it’ll redirect to the control panel or to usermin.

That’s configured within System Settings -> Server Template -> Default Template -> Apache Website. Look for “Redirect webmail.domain” and “Redirect admin.domain”.

they are enabled, were enabled by default, but when I go to I get a oops, that link appears broken error from google, any ideas?


I’m not sure I fully understand the error you’re getting – you might need to paste it in here.

But, the "" will only work if the Virtualmin server is also your DNS server.

Hi, my virtualmin server is my DNS server as well, when I type in I get the following google search instead of the login page:*&ie=UTF-8&oe=UTF-8&startIndex=&startPage=1

if I type in I get page can not be displayed.

when I type in instead of getting usermin, I get some other login page:


Okay, the problem is that the DNS for admin and webmail aren’t seutp.

Does those work for new domains you add?

It was only a few months back that Virtualmin added that feature. One possibility is that was added to your system before that feature was around.

As for how to fix it?

If you have the Pro version (I don’t think this is in GPL, though it’s worth looking), you can enable it on the command line:,virtualmin_api_modify_web/

Using something like: --domain name rooksystems --webmail

More information on the commands available and how to use them (along with where they’re located) can be found here:,command_line_api/