我看过很多类似的问题,如this one,我甚至可以通过在全局目录中进行更改来解决我的问题。但是,我想在httpd-vhosts.conf文件中进行更改。以下是我目前有:没有权限访问/在此服务器
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "c:/www/firstSite.dev"
<Directory "c:/www/firstSite.dev/">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order deny,allow
Allow from all
</Directory>
ServerName firstSite.dev
</VirtualHost>
不过,我仍然得到错误:
Forbidden
You don't have permission to access/on this server.
任何帮助,将不胜感激。
你有.htaccess吗?您使用的路径需要管理员权限才能更改任何文件。那条道路的尽头是什么? – Benjiman 2013-03-09 06:17:19
我没有.htaccess文件。所有用户都可以完全访问C:/ www /。这也是整个路径(即c:/www/firstSite.dev/index.html) – 2013-03-09 06:20:24