Hi,
In wamp/scripts/wampserver.lib.php you may replace :
//Validity of ServerName (Like domain name)
// /^[A-Za-z]+([A-Za-z0-9][-.](?![-.])|[A-Za-z0-9]){1,60}[A-Za-z0-9]$/
if(preg_match('/^
[A-Za-z]+ # letter in first place
([A-Za-z0-9] # letter or number
[-.](?![-.]) # a . or - not followed by . or -
| # or
[A-Za-z0-9] # a letter or a number
){1,60} # this, repeated from 1 to 60 times
[A-Za-z0-9] # letter or number at the end
$/x',$value) == 0 && $wampConf['NotCheckVirtualHost'] == 'off') {
$virtualHost['ServerNameValid'][$value] = false;
}
by
//Validity of ServerName (Like domain name)
// /^[A-Za-z]+([-.](?![-.])|[A-Za-z0-9]){1,60}[A-Za-z0-9]$/
if(preg_match('/^
[A-Za-z]+ # letter in first place
([-.](?![-.]) # a . or - not followed by . or -
| # or
[A-Za-z0-9] # a letter or a number
){1,60} # this, repeated from 1 to 60 times
[A-Za-z0-9] # letter or number at the end
$/x',$value) == 0 && $wampConf['NotCheckVirtualHost'] == 'off') {
$virtualHost['ServerNameValid'][$value] = false;
}
Will be in wampserver 3.1.1 update
---------------------------------------------------------------
Documentation Apache -
Documentation PHP -
Documentation MySQL -
Wampserver install files & addons