Trouble creating subdomains

I am trying to get a subdomain created for an account. So far I am just testing, so the subdomain I am entering is “test”. Just “test”, not “test.example.com” as the form already has “.example.com” shown.

I am getting back the following error:

Failed to create virtual server : Invalid sub-domain name - no dots are allowed

I am not entering any freaking dots! :slight_smile:

What’s wrong?

I fixed it by replacing, in /usr/share/webmin/virtual-server/domain_setup.cgi, line 58:

From:

    $in{'dom'} =~ /^[A-Za-z0-9\-]+$/ || &error($text{'setup_esubdomain'});

To:

    ($in{'dom'} =~ /^[A-Za-z0-9\-]+$/) || &error($text{'setup_esubdomain'});

& should be &…