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 に答える