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>