家・車以外で、人生で一番奮発した買い物

ブラウザを立ち上げて
http://localhost/
ってやると/usr/local/apache2/htdocs/index.htmlが見えるのですが、
taroというユーザーを作ってホームディレクトリのしたに
~taro/public_html/index.html
をつくってやると

Forbidden

You don't have permission to access /~taro on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.0.39 Server at localhost Port 80

といわれちゃいます。ちなみに.httpd.confの中の所では

#UserDir public_html
<IfModule mod_userdir.c>
UserDir public_html
</IfModule>

となっています。
どうすれば見れるようになるのでしょうか?

A 回答 (2件)

それでは不適切です。



taro 701
public_html 701
index.html 604

に変更してください。
# index.html は644でもいいですが。
    • good
    • 0
この回答へのお礼

おおーっ、見れました!!
ありがとうございました。

お礼日時:2002/07/29 19:55

~taro/



のパーミッションは701や711など、適切なものになっていますか?

public_html

も、同じように。

この回答への補足

残念ながら;-)
drwx------ 20 taro user 4096 7月 29 15:11 taro
drwx------ 2 taro users 4096 7月 23 18:51 public_html
-rw-r--r-- 1 taro users 75 7月 23 18:52 index.html
です。

補足日時:2002/07/29 15:14
    • good
    • 0

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!