yanqiufang 发表于 2015-8-20 07:57:06

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>
  
  
  
页: [1]
查看完整版本: LAMP配置虚拟目录