Xampp / Mac - 通过HTTP访问JPEG文件

时间:2012-11-13 17:20:33

标签: apache xampp

我设置了一个虚拟目录:

<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服务器。

我做错了什么?

1 个答案:

答案 0 :(得分:0)

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

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