找到Listen :80
或者Listen:80
添加或更改为你要添加的端口(不能有冲突)如下面的例子:
Listen 80
Listen 81
Listen 82
再建立虚拟主机,如下:
NameVirtualHost localhost:80
NameVirtualHost localhost:2222
NameVirtualHost localhost:6666
DocumentRoot E:webroot
ServerName localhost:80 DocumentRoot f:webroot
ServerName locahost:2222
DocumentRoot D:webrootwebphpmyadmin
ServerName localhost:6666