3

我正在尝试从我的 XAMPP 目录中的 htdocs 目录链接到我的主目录(我使用的是 Ubuntu)。我网站目录的权限是drwxrwxr-x。我还在 httpd.conf 中为 htdocs 添加了 FollowSymLinks 选项:

<Directory "/opt/lampp/htdocs">

Options Indexes FollowSymLinks ExecCGI Includes

AllowOverride All

Require all granted
</Directory>

尽管如此,当我尝试打开我的网站时,我仍然收到错误 403。这是 error.log 中的消息:

[Thu Dec 06 22:53:28.874813 2012] [core:error] [pid 7553] [client 127.0.0.1:32999] AH00037: Symbolic link not allowed or link target not accessible: /opt/lampp/htdocs/benjamin/website-paul

你知道可能是什么原因吗?

4

1 回答 1

1

You must identify where you want to allow from -- who is allowed to follow the link. This could be an IP, IP range, domain, or all. Also, even though you are likely to allow from all, it is good practice to set allow order.

Order allow,deny
Allow from all
于 2012-12-16T18:40:37.480 回答