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?
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 admin.domainname.com 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 "admin.domain.com" 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 admin.rooksystems.com I get the following google search instead of the login page:
if I type in http://admin.rooksystems.com I get page can not be displayed.
when I type in webmail.rooksystems.com 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 rooksystems.com 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:
Using something like:
modify_web.pl --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: