Virtualmin Domain Droplist

On one of our servers (which by the way still has Bind installed although it is shut down and not needed) reverts http requests to the domain that is listed in the top of the Virtualmin domain droplist. If you request, for instance http://mail.somedomain.com it goes to the domain listed first in the droplist. If you do this for any other domain on the server it keeps reverting to that droplist - top. If you include "www." or just the domain in the http request you go to the proper domain. So if any other subdomain is tried - we get that droplist top listed domain. Does this make any sense and does anyone have an idea?

Status: 
Closed (fixed)

Comments

I see what you mean here.. the problem is that Virtualmin only configures Apache to answer for domain.com and www.domain.com for all your domains, so if you access mail.domain.com or the IP of that domain, you will get the web page for the default virtual server, which is typically the one that is alphabetically first in the list.

The possible solutions are either :

  1. Select a domain of your choice as the default to show in this case. This can be done at Server Configuration -> Website Options -> Default website for IP address?.

  2. Configure Virtualmin to serve a domain's website when any sub-domain is accessed in the browser. This can be done on that same page with the "Website matches all sub-domains?" option. However, this will need to be enabled for all virtual servers.

You can more easily enable option 2 for all virtual servers from the command line, with a command like :

virtualmin modify-web --all-domains --matchall

Automatically closed -- issue fixed for 2 weeks with no activity.