利用段口分虚拟主机,还有的,在Google搜索一下
http://www.google.cn/search?hl=zh-CN&newwindow=1&client=firefox-a&rls=org.mozilla:zh-CN:official&hs=gJS&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=Apache+Virtualhost&spell=1代码(httpd.conf):#站点一:80段口虚拟主机
<VirtualHost *:80>
#例如站点一的根目录为D:\phpMyAdmin\80
DocumentRoot "D:\phpMyAdmin\80"
ServerName 127.0.0.1
</Virtualhost>#站点二:81段口虚拟主机
<VirtualHost *:81>
#例如站点二的根目录为D:\phpMyAdmin\81
DocumentRoot "D:\phpMyAdmin\81"
ServerName 127.0.0.1
</Virtualhost>#站点三:82段口虚拟主机
<VirtualHost *:82>
#例如站点一的根目录为D:\phpMyAdmin\82
DocumentRoot "D:\phpMyAdmin\82"
ServerName 127.0.0.1
</Virtualhost>#站点四:83段口虚拟主机
<VirtualHost *:83>
#例如站点二的根目录为D:\phpMyAdmin\83
DocumentRoot "D:\phpMyAdmin\83"
ServerName 127.0.0.1
</Virtualhost>