シンボリックリンクを含むURLにアクセスできない
fedora10を自宅ノートに入れて開発環境+LAMP環境を構築。
その際にシンボリックリンクを含むURLにアクセスできない(403)という現象が発生した。
エラーログには、Symbolic link not allowed or link target not accessibleと記されている。
しかし、httpd.confにはOptions FollowSymLinksも記述しており設定的には問題ないはず。
http://home-server/test-cgi/myDir/index.html
というURLへの実際のファイルシステムは以下の通りとなる。
[hoge@home-server local]$ ll test-cgi
lrwxrwxrwx 1 root root 24 2009-05-24 11:17 test-cgi -> /mnt/disk/local/test-cgi/
まず/test-cgiそのものがシンボリックリンクとなっている。
test-cgiの配下は以下のようになる。
[hoge@home-server local]$ ll test-cgi/
lrwxrwxrwx 1 root root 27 2009-05-24 11:18 myDir -> /home/hoge/workspace/myDir/
-rwxr-xr-x 1 root root 75 2009-05-24 11:33 index.cgi*
myDirというディレクトリがさらにシンボリックリンクとなっている。
ちなみにこの階層のindex.cgiには
http://home-server/test-cgi/index.cgi
として正常にアクセスできることを確認した。
httpd.confの設定は正しいだろう。
さらにmyDirをたどっていくと以下のようになる。
[hoge@home-server local]$ ll test-cgi/myDir/
-rw-r--r-- 1 root root 31 2009-05-24 11:34 index.html
しかーし、このindex.htmlにアクセスできないのだ。
なんども設定を見直したりしたんだがどうも原因がハッキリしない。
ふと気がついたのが2段目のリンクは自分のホームディレクトリ配下ということ。
ホームディレクトリってアクセス的に非常にセンシティブだったなあと思い、
改めて確認すると、
[hoge@home-server ~]$ ll /home/
drwxr----- 31 hoge hoge 4096 2009-05-24 14:14 hoge/
おー!700!これか!ということで755に変更。
無事に200で返っててくるようになった。
これだけで随分はまったぜ。
その際にシンボリックリンクを含むURLにアクセスできない(403)という現象が発生した。
エラーログには、Symbolic link not allowed or link target not accessibleと記されている。
しかし、httpd.confにはOptions FollowSymLinksも記述しており設定的には問題ないはず。
http://home-server/test-cgi/myDir/index.html
というURLへの実際のファイルシステムは以下の通りとなる。
[hoge@home-server local]$ ll test-cgi
lrwxrwxrwx 1 root root 24 2009-05-24 11:17 test-cgi -> /mnt/disk/local/test-cgi/
まず/test-cgiそのものがシンボリックリンクとなっている。
test-cgiの配下は以下のようになる。
[hoge@home-server local]$ ll test-cgi/
lrwxrwxrwx 1 root root 27 2009-05-24 11:18 myDir -> /home/hoge/workspace/myDir/
-rwxr-xr-x 1 root root 75 2009-05-24 11:33 index.cgi*
myDirというディレクトリがさらにシンボリックリンクとなっている。
ちなみにこの階層のindex.cgiには
http://home-server/test-cgi/index.cgi
として正常にアクセスできることを確認した。
httpd.confの設定は正しいだろう。
さらにmyDirをたどっていくと以下のようになる。
[hoge@home-server local]$ ll test-cgi/myDir/
-rw-r--r-- 1 root root 31 2009-05-24 11:34 index.html
しかーし、このindex.htmlにアクセスできないのだ。
なんども設定を見直したりしたんだがどうも原因がハッキリしない。
ふと気がついたのが2段目のリンクは自分のホームディレクトリ配下ということ。
ホームディレクトリってアクセス的に非常にセンシティブだったなあと思い、
改めて確認すると、
[hoge@home-server ~]$ ll /home/
drwxr----- 31 hoge hoge 4096 2009-05-24 14:14 hoge/
おー!700!これか!ということで755に変更。
無事に200で返っててくるようになった。
これだけで随分はまったぜ。
2 件のコメント:
dating sites for foreign http://loveepicentre.com/articles.php dating ancona victoria australia girls
best oline dating sites http://loveepicentre.com/advice/ articles on internet dating
quebec dating [url=http://loveepicentre.com/articles/]6months free trial dating sites[/url] free married adult dating
speed dating in minneapolis [url=http://loveepicentre.com/success_stories/]customs of dating around the world[/url] definition of dating abuse [url=http://loveepicentre.com/user/tlbeck201/]tlbeck201[/url] dating shropshire
コメントを投稿
登録 コメントの投稿 [Atom]
<< ホーム