LAMP配置虚拟目录

1.  httpd.conf中添加 Listen 81

2. 

 1  <VirtualHost 127.0.0.2:81>
2 DocumentRoot E:\ws\2011\DiscuzSpace\upload
3 ServerName 127.0.0.2:81
4 </VirtualHost>
5 <Directory "E:\ws\2011\DiscuzSpace\upload">
6 Options Indexes FollowSymLinks Multiviews
7 AllowOverride All
8 Order Allow,Deny
9 Allow from all
10 </Directory>
 1 <VirtualHost 127.0.0.5:81>
2 DocumentRoot E:\php-ws-source\myphp
3 ServerName 127.0.0.5:81
4 </VirtualHost>
5 <Directory "E:\php-ws-source\myphp">
6 Options Indexes FollowSymLinks Multiviews
7 AllowOverride All
8 Order Allow,Deny
9 Allow from all
10 DirectoryIndex index.html
11 </Directory>

  

posted @ 2011-08-09 09:08  来自非洲大草原的食人虎  阅读(450)  评论(0编辑  收藏  举报