2017-03-06 6 views
0

この問題は、Sierraに更新した後に発生しているようです。 localhost/icons/text.gifと表示されている画像を調べているうちに、フォルダを作成して777に割り当てましたが、同じ問題に直面しています。OSXのローカルホストディレクトリのアイコンがテキストとして表示される[access_compat] [AH01797]

アイコンが表示されるはずのページが表示されるたびに、Apacheのエラーログに次のようなスパムが記録されています。 /usr/share/httpd/icons/はrootによって所有され、アクセス許可はdrwxr-xr-xです。あなたが使用してApacheの設定ファイルを開いた場合

[access_compat:error] [pid 1763] [client ::1:49623] AH01797: client denied by server configuration: /usr/share/httpd/icons/unknown.gif, referer: http://localhost/testing/ 
[access_compat:error] [pid 1763] [client ::1:49623] AH01797: client denied by server configuration: /usr/share/httpd/icons/text.gif, referer: http://localhost/testing/ 
[access_compat:error] [pid 1763] [client ::1:49623] AH01797: client denied by server configuration: /usr/share/httpd/icons/folder.gif, referer: http://localhost/testing/ 
[access_compat:error] [pid 1763] [client ::1:49623] AH01797: client denied by server configuration: /usr/share/httpd/icons/compressed.gif, referer: http://localhost/testing/ 

Local folder icons

答えて

1

sudo nano /private/etc/apache2/httpd.conf 

は、次のコードを入力してください(あなたが他のディレクトリコードの横にそれを置くことができます):

<Directory /usr/share/httpd/icons> 
     Allow from all 
</Directory> 

ctrl-Oでファイルを保存し、ファイルを閉じます。 eをctrl-Xで置き換えて、アイコンをロードできるようにする必要があります:

sudo apachectl restart 

を使用してApacheを再起動してください。

関連する問題