从URL中排除~username时OSX El Capitan Apache Forbidden

时间:2016-03-27 09:55:28

标签: macos apache

我试图将我的Mac设置为网络服务器作为一种倾向的体验;除了一件小事之外,一切都很完美。

如果我去这里,它有效:

http://mywebsite.ddns.net/~username/

如果我到这里(没有~username),我会收到错误消息"您无权访问/在此服务器上访问":

http://mywebsite.ddns.net/

我猜测它与我的httpd.confusername.conf设置有关。我已根据其他答案的建议对其进行了调整,但我仍然遇到错误,以下是各自的相关设置:

的httpd.conf:

DocumentRoot "/Users/username/Sites"
<Directory "/Library/Users/username/Sites">

username.conf:

<Directory "/Users/username/Sites/">
AllowOverride All
Options Indexes MultiViews FollowSymLinks
Require all granted
</Directory>

我应该查看其他任何设置,或者Google协作平台文件夹本身是否有不正确的权限?这是文件夹:

drwxr-xr-x  40 username  staff  1360 27 Mar 19:24 Sites

任何帮助都非常感谢!

0 个答案:

没有答案