Apacheサーバー:権限とシンボリックリンクの問題

Apacheサーバー:権限とシンボリックリンクの問題

私はCentOS(Linux 2.6.32-431.11.2.el6.x86_64)を使用しています。 Apache2.2.15 Webサーバーを作成しようとしています。すべてがうまく構成されています。 My DocumentRootがデフォルトの場所です/var/www/html。完全に機能するシンボリックリンクを作成できます。たとえば、構成ディレクトリへのリンクを作成できますが、ln -s /etc/httpd/conf/ /var/www/html/confこれは正常に機能します。ホームディレクトリへのシンボリックリンクも作成しましたが、機能しません。 Webサーバーをテストすると、次のエラー(403)が発生します。

Forbidden

You don't have permission to access /test1/home/ on this server.

Apache/2.2.15 (CentOS) Server at my-PC Port 80

Webサーバーはユーザーabcとして実行されます(abcは通常のユーザーであり、ホームディレクトリにアクセスできます)。ホームディレクトリの権限は次のとおりです。

drwxr-xr-x.   6 abc abc  4096 May 29 14:47 home

httpd.confの関連部分は次のとおりです。

<Directory "/">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Allow from all
</Directory>
<Directory "/var/www/html/">
 Options Indexes FollowSymLinks Includes ExecCGI
 AllowOverride All
 Allow from all
</Directory>

SELINUXが無効になっています。 error_log は以下を通知します。

 [client ########] (13)Permission denied: Can't open directory for index: /var/www/html/test1/home/, referer: http://YYYYYYYYYY/test1/

誰もがホームディレクトリまたはディレクトリへのシンボリックリンクを作成する方法を提案できますか/home/abc/Download

ベストアンサー1

おすすめ記事