【发布时间】:2017-07-25 19:29:00
【问题描述】:
这个问题似乎是在我更新到 Sierra 之后出现的。在检查显示为localhost/icons/text.gif 的图像时,我创建了一个文件夹并将其分配给777,但仍然面临同样的问题。
每次查看应显示图标的页面时,apache 错误日志都会收到以下垃圾邮件。 /usr/share/httpd/icons/ 由具有drwxr-xr-x 权限的root 拥有。
[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/
【问题讨论】:
标签: macos apache permissions