日期:2014-05-16  浏览次数:20772 次

设置apache网站的虚拟目录

?

NameVirtualHost ?*:80

?

<VirtualHost *:80>

? ? ServerAdmin localhost@admin.com

? ? DocumentRoot "E:/wwwroot/localhost/"

? ? DirectoryIndex index.php

? ? ServerName local

? ? <Directory "E:/wwwroot/localhost">

? ? ? ? Options -Indexes +FollowSymLinks

? ? ? ? AllowOverride all

? ? ? ? Order allow,deny

? ? ? ? Allow from all

? ?</Directory>

</VirtualHost>

?