2012-12-11 21 views
3

我想從我的XAMPP目錄中的htdocs目錄鏈接到我的主目錄(我正在使用Ubuntu)。我的網站目錄的權限是drwxrwxr-x。 我還添加了的FollowSymLinks選項htdocs目錄在httpd.conf:如何在Apache/XAMPP中使用符號鏈接?

<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 

你有任何想法可能是什麼原因?

回答

1

您必須確定您想允許的位置 - 允許哪些人關注鏈接。這可能是IP,IP範圍,域或全部。此外,即使您可能允許所有人,設置允許訂單也是一個好習慣。

Order allow,deny 
Allow from all