我在安装了SO(W8)的主分区(C :)中安装了apache,我想为放置在不同分区(E :)中的存储项目设置另一个虚拟主机。这是我的尝试:
文件httpd.conf:
DocumentRoot "C:\www"
<Directory "C:\www">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
文件httpd-vhosts.conf 虚拟主机号1:
<VirtualHost *:80>
<Directory "C:\www">
Options Indexes FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
Satisfy all
IndexIgnore */*
RewriteEngine on
RewriteRule . index.php
</Directory>
DocumentRoot "C:\www"
ServerName www.loc
</VirtualHost>
虚拟主机号码2:
<VirtualHost *:80>
<Directory "E:\workspace\project\php\app">
Options Indexes FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
Satisfy all
IndexIgnore */*
RewriteEngine on
RewriteRule . index.php
</Directory>
DocumentRoot "E:\workspace\project\php\app"
ServerName workspace.loc
</VirtualHost>
我收到错误403&#34;您无权访问所请求的对象。它受读保护或服务器无法读取。&#34;
我怎样才能做到这一点?