- PR -

sargのindex.htmlを見ようとするとforbiddenが・・

1
投稿者投稿内容
つる
ベテラン
会議室デビュー日: 2004/06/02
投稿数: 81
投稿日時: 2004-09-07 15:08
お世話になります。
sargのindex.htmlを表示しようとするとAccess forbidden!が表示されます。
apache2をrpmでインストールし、squidもrpmでインストールし、sargもrpmでインストールしました。
ドキュメントルートは現在 var/wwwにしています。
http://hostname/だとアパッチ標準が表示されます。
http://hostname/html/index.html だと作成したページが表示されます。
http://hostname/sarg/index.html だと下記エラーが表示されます。
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
sarg/index.htmlをcpでhtmlにもってくると表示されます。

現在のパーミッションです。sargのディレクトリが(drwxr-xr-x 6 root)が6になっている位で他に変わった点が見つかりません。
また、この6の意味を今調べてるのですが、なかなか説明文書にたどりつきません。
どうすれば権限を与えることができるのか?
どなたかご教授ください。よろしくお願いします。

/var/www/
drwxr-xr-x 2 root root 4096 2月 25 2003 cgi-bin
drwxr-xr-x 3 root root 4096 9月 6 10:56 error
drwxr-xr-x 2 root root 4096 9月 7 11:25 html
drwxr-xr-x 3 root root 4096 9月 6 10:56 icons
drwxr-xr-x 6 root root 4096 9月 7 11:02 sarg

ls /sarg -l
drwxr-xr-x 3 root root 4096 9月 7 10:45 ONE-SHOT
drwxr-xr-x 2 root root 4096 6月 30 09:06 daily
-rw-r--r-- 1 root root 1419 6月 30 09:06 index.html
drwxr-xr-x 2 root root 4096 6月 30 09:06 monthly
drwxr-xr-x 2 root root 4096 6月 30 09:06 weekly

ls /html -l
-rw-r--r-- 1 root root 110 9月 7 11:25 index.html

環境(サーバー)
RedHat Lunix release 9 Kernel 2.4.20-8 on an i686
Apache/2.0.40 (Red Hat Linux)
sarg-1.4.1-4.0.rh9.dag
環境(クライアント)
ウィンドウズ2000sp3 IE6

--------------
現在gooにもポストしています。(削除できないので・・・)
マルチポストは、マナー上失礼とは存じているのですが、投稿しました。
どうぞお許しください。
kalze
ぬし
会議室デビュー日: 2003/10/23
投稿数: 406
お住まい・勤務地: 東京・東京
投稿日時: 2004-09-07 15:18
ぱっと思いついたのはhttpd.confでアクセス不可になっているとかなんですが、
その辺(httpd.conf)の確認は既にされていますでしょうか?
_________________
つる
ベテラン
会議室デビュー日: 2004/06/02
投稿数: 81
投稿日時: 2004-09-07 15:31
アドバイスありがとうございます。
Linux初心者ですので正しいかどうかの自信はないんですが、色々とHPを見て
設定したのが下記です。多分AllowFromAllになっているので大丈夫だとは思うのですが・・

#DocumentRoot "/var/www/html"
DocumentRoot "/var/www"
#<Directory "/var/www/html">
<Directory "/var/www">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
つる
ベテラン
会議室デビュー日: 2004/06/02
投稿数: 81
投稿日時: 2004-09-07 22:45
解決しました。
find -name httpd.confを間違えてfind -name sarg.confと打ったところ
httpd/conf.d/にsarg.confが存在することに気づき、中をみると・・
<Directory "/var/www/sarg">とあり、Allow from 127.0.0.1と・・
Allow from All で無事動き出しました。

kalzeさんありがとうございました。
1

スキルアップ/キャリアアップ(JOB@IT)