<VirtualHost *:80>
DocumentRoot "D:/web/myweb" //网站根目录
ServerName www.myweb.com //域名
<Directory "D:/web/myweb>//apache vhosts配置文件 这个是设置访问权限(如果该文件是不在apache下的htdocs文件夹里,而是在与apache文件夹并列的文件夹或者别的地方,就要使用这个,否则则没有权限访问)
Require local
Options indexes //这句是看见该目录文件下的除了index.html/index.php文件的其他文件
</Directory>
</VirtualHost>