0

我设置了一个虚拟目录:

<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

进行更改后,我重新启动了 Web 服务器。

我究竟做错了什么?

4

1 回答 1

0

该文件是否具有对运行 Apache 的用户可见的权限?

如果你执行“ls -lah”,你的输出是什么?

于 2012-11-13T17:25:39.990 回答