apache 虚拟ip

8/31/2015来源:PHP技巧人气:1808

apache 虚拟ip

参考 http://blog.sina.com.cn/s/blog_5d8ca1e90100hnpv.html

<VirtualHost 127.0.0.1:80> DocumentRoot C:/xampp/htdocs/yiyunmap ServerName 127.0.0.1:80 </VirtualHost> <VirtualHost 127.0.0.2:80> DocumentRoot C:/xampp/htdocs/user ServerName 127.0.0.2:80 </VirtualHost><Directory "C:/xampp/htdocs/yiyunmap"> Options Indexes FollowSymLinks Multiviews AllowOverride All Order Allow,Deny Allow from all </Directory> <Directory "C:/xampp/htdocs/user"> Options Indexes FollowSymLinks Multiviews AllowOverride All Order Allow,Deny Allow from all </Directory>