首先打开配置文件httpd.conf,
找到Listen <ip>:80
或者Listen:80
添加或更改为你要添加的端口(不能有冲突)如下面的例子:
Listen 80
Listen 81
Listen 82
再建立虚拟主机,如下:
NameVirtualHost localhost:80
NameVirtualHost localhost:2222
NameVirtualHost localhost:6666
<VirtualHost localhost:80>
DocumentRoot E:\webroot\
ServerName localhost:80
</VirtualHost>
<VirtualHost localhost:2222>
DocumentRoot f:\webroot\
ServerName locahost:2222
</VirtualHost>
<VirtualHost localhost:6666 >
DocumentRoot D:\webroot\web\phpmyadmin
ServerName localhost:6666
</VirtualHost>
posted on 2007-11-22 15:57
周锐 阅读(1942)
评论(0) 编辑 收藏 所属分类:
Apache