Re: ユーザごとにWebページを作れるようにする
( No.1 )
|
 |
- 日時: 2005/03/03 16:53
- 名前: 管理者
-
hiro様、はじめまして。
プロバイダ等のユーザホームページのパス「/~user/」で公開したいと言うことですよね?
apacheの設定ファイル「/etc/httpd/conf/httpd.conf」の以下の部分を変更します。
<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 ← 無効(disable)になっているのでコメントアウトします ↓ ↓ ↓ #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 ← ユーザのpublic_htmlパスを指定します(無効になっているので有効にします) ↓ ↓ ↓ UserDir public_html
</IfModule>
|
Re: ユーザごとにWebページを作れるようにする
( No.2 )
|
 |
- 日時: 2005/03/03 16:54
- 名前: 管理者
-
#
# Control access to UserDir directories. The following is an example # for a site where these directories are restricted to read-only. # <Directory /home/*/public_html> AllowOverride FileInfo AuthConfig Limit Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec <Limit GET POST OPTIONS> Order allow,deny Allow from all </Limit> <LimitExcept GET POST OPTIONS> Order deny,allow Deny from all </LimitExcept> </Directory>
上記の<Directory /home/*/public_html>〜</Directory>の"#"を取り、有効にします。 中の各パラメータについては敢えて説明致しません。
apacheを再起動して下さい。
「/home/user/public_html」を作成して、htmlを置いてみて下さい。 (「/home/user/public_html」パスのパーミッションは711で!!) これで「/~user/」で表示されます。
|
Re: ユーザごとにWebページを作れるようにする
( No.3 )
|
 |
- 日時: 2005/03/03 17:26
- 名前: hiro
-
早速の対応ありがとうございます!!
できました!! どうもありがとうございました ペコペコ
|