设置apache 多个虚拟目录记录
#配置第2个虚拟目录
<VirtualHost 127.0.0.2:80>
ServerName www.xx.com
DocumentRoot "E:/wamp/www/"
</VirtualHost>
<Directory "E:/wamp/www/">
Options Indexes FollowSymLinks Multiviews
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
#配置第2个虚拟目录
在wampinapacheapache2.2.8confhttpc.conf 文件下面最后加入以上 就可以设置多个虚拟目录了
例如:
#配置虚拟主机 <VirtualHost 127.0.0.2:80> ServerName www.baozhuangji.com DocumentRoot "F:/sinaApp/komiles/1/" </VirtualHost> <Directory "F:/sinaApp/komiles/1/"> Options Indexes FollowSymLinks Multiviews AllowOverride All Order Allow,Deny Allow from all </Directory> #配置虚拟主机 <VirtualHost 127.0.0.3:80> ServerName www.baozhuangji.cn DocumentRoot "D:/webRoot/metinfo/" </VirtualHost> <Directory "D:/webRoot/metinfo/"> Options Indexes FollowSymLinks Multiviews AllowOverride All Order Allow,Deny Allow from all </Directory>