はじめての自宅サーバ構築 - Fedora/CentOS -
Last Update 2018/05/30
[ 更新履歴 ] [ サイト マップ ] [ 質問掲示板 ] [ 雑談掲示板 ] [ リンク ]
トップ >> 質問掲示板

 このスレッドはクローズされています。記事の閲覧のみとなります。

 チルダ付きホームページが表示されない
日時: 2010/03/23 22:24
名前: ハフナー

1.不明点・障害内容:チルダ付きホームページが表示できない
2.ログの有無   :
  (有:その内容) :
3.Distribution  :fedora
      Version :12
4.Service Name  :httpd
      Version :2.2
5.ネットワーク構成:

http://kajuhome.com/tips/tips_03_002.shtmlにしたがって、設定を行いました。設定項目の記述が変わっているので、以下のようにしました。

<IfModule mod_userdir.c>
  #
  # UserDir is disabled by default since it can confirm the presence
  # of a username on the system (depending on home directory
  # permissions).
  #
  # UserDir disable

  #
  # To enable requests to /~user/ to serve the user's public_html
  # directory, remove the "UserDir disable" line above, and uncomment
  # the following line instead:
  # 
  UserDir public_html
</IfModule>

<Directory /home/*/public_html>
  AllowOverride All
  Options Includes ExecCGI FollowSymlinks
  <Limit GET POST OPTIONS>
    Order allow,deny
    Allow from all
  </Limit>
#  <LimitExcept GET POST OPTIONS>
#    Order deny,allow
#    Deny from all
#  </LimitExcept>
</Directory>

さらにユーザーディレクトリを作りました。
home
 |
 +---linux
    |
    +---public_html
      (index.html)
と、これでいいと思うのですが、ブラウザからhttp://123.456.789.012/~linuxとすると「NotFound」(エラーコードなし)になってしまいます。あと何か設定が不足しているのでしょうか? ちなみにhttp://123.456.789.012/index.htmlは正常に表示されますし、バーチャルホストの方もhttp://123.456.789.012/virtual/index.htmlも正しく表示されます
メンテ

Page:  [1] [2]

■ コンテンツ関連情報

 Re: チルダ付きホームページが表示されない ( No.6 )
日時: 2010/03/24 07:33
名前: stranger
参照: http://ja.528p.com/

home/linux
はユーザ登録して作成しましたか
/etc/passwdにユーザの設定がないと私のところではnot foundになります

メンテ
 Re: チルダ付きホームページが表示されない ( No.7 )
日時: 2010/03/24 18:35
名前: ハフナー

> /etc/passwdにユーザの設定がないと私のところではnot foundになります

 それが原因でした。ありがとうございました。

管理者様
申し訳ありませんが、FireFoxがパスワードに違うものを記憶してしまったようで、クローズできません。クローズをお願いいたします。
メンテ
 Re: チルダ付きホームページが表示されない ( No.8 )
日時: 2010/03/25 11:09
名前: RYU

変な質問で申し訳ありませんが、ディレクトリを作るだけでユーザーが増えると思われたのでしょうか?
/home/linuxは誰の所有になっていたのでしょうか?rootですか?
ユーザー登録してないとユーザーとしてディレクトリを所有できないですよね?
(やらないとは思いますが/etc/passwdを直接編集しない方がいいですよ)
メンテ
 Re: チルダ付きホームページが表示されない ( No.9 )
日時: 2010/03/30 09:51
名前: 管理者

解決後にレスが付きましたが、クローズ依頼がありましたので処理させて頂きます。
メンテ

Page:  [1] [2]

■ その他

ページ先頭へ

Copyright(©)2004-2018 First home server construction. All Right Reserved.