Trouble creating subdomains

3 posts / 0 new
Last post
#1 Mon, 09/12/2011 - 12:41
robbrandt

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! :)

What's wrong?

Wed, 01/11/2012 - 19:46
Wrikken

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'});
Wed, 01/11/2012 - 19:47 (Reply to #2)
Wrikken

& should be &.....

Topic locked