【发布时间】:2012-11-13 17:20:32
【问题描述】:
我设置了一个虚拟目录:
<Directory "/Applications/XAMPP/branding">
Options None
AllowOverride All
Order allow,deny
Allow from all
</Directory>
定义了别名:
Alias /branding "/Applications/XAMPP/branding"
我在该文件夹中放置了一个 jpeg 文件并尝试通过以下方式访问它:
http://127.0.0.1/branding/image.jpeg
我收到一个身份验证错误:
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
Error 403
127.0.0.1
Tue Nov 13 12:15:14 2012
Apache/2.2.14 (Unix) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l PHP/5.3.1 mod_perl/2.0.4 Perl/v5.10.1
我在进行更改后重新启动了网络服务器。
我做错了什么?
【问题讨论】:
-
你能发布整个 vhost 指令吗?也许随着域的变化。