Virtualmin Access URL

Hello, when I access webmin/virtualmin it’s accessible via and Is it possible to set the config so that doesn’t redirect to the webmin/virtualmin at In the future I will have many servers named after planets – ; etc.

thank you!

Yeah, you can configure that redirect in the Server Templates, section “Apache Website”. You can choose there if there should be a redirect, and where it should point.

Templates apply to newly created domains. For existing ones, you’ll need to edit the Apache virtual host config (“Services / Configure Website / Edit Directives”) and modify the RewriteCond/Rule directives doing the redirect.

And don’t forget that Pluto is no longer a planet. :wink:


An alternative way to apply that redirect to all existing domains is to use the command line API… the following will add it to all your domains, once you’ve modified your Server Templates as Locutus mentioned:

virtualmin modify-web --all-domains --no-webmail virtualmin modify-web --all-domains --webmail

That will disable the current redirect, and then re-add it.


@Eric: Ooh, that’s a nice feature, I didn’t know that. :slight_smile: I could have used it a while ago when I manually edited the webmail redirection target for all my email-enabled domains.

Anyway, I think I found a bug in that procedure. After performing those two commands (on one test domain), the RewriteCond directive for webmail was missing. Possibly because I have a custom rule in my config.

Before the cycle, the Rewrite block looked like this:

RewriteEngine on RewriteRule ^/mail/config-v1\.1\.xml [L,R=301,NE,QSA] RewriteCond %{HTTP_HOST} RewriteRule ^(.*) [R] RewriteCond %{HTTP_HOST} RewriteRule ^(.*) [R]

After turning webmail off, like this:

RewriteEngine on RewriteRule ^/mail/config-v1\.1\.xml [L,R=301,NE,QSA]

After turning it back on, this:

RewriteEngine on RewriteRule ^/mail/config-v1\.1\.xml [L,R=301,NE,QSA] RewriteRule ^(.*) [R] RewriteCond %{HTTP_HOST} RewriteRule ^(.*) [R]

I’m too lazy right now to create an entry in the issue tracker. :wink: