!!!Linux ユーザホームページ作成 ::ユーザを作成し、公開ディレクトリを作成 *[username]にユーザ名を指定 useradd [username] passwd [password] chmod -R 711 /home/[username] cd /home/[username] mkdir public_html vi index.html chmod 644 index.html   ::apache httpdの設定を変更 http://httpd.apache.org/docs/2.2/ja/mod/mod_userdir.html UserDir disable UserDir enabled [username] [username2] ... UserDir public_html <-- コメント解除 ↓コメント解除 AllowOverride FileInfo AuthConfig Limit Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec Options +ExecCGI <-- CGI使用時追加 AddHandler cgi-script .cgi .pl <-- CGI使用時追加 Order allow,deny Allow from all Order deny,allow Deny from all ::Basic認証 必要があればBasic認証を行う *apache httpdの設定に追記 AuthType Basic AuthName "Restricted Files" AuthUserFile /home/[username]/shadow Require valid-user Options Indexes Multiviews AllowOverride None Order allow,deny Allow from all +/etc/shadow ファイルを、/home/[username]/shadow にコピーしてくる。 +許可するユーザの行を残し、他を削除し保存する ::アクセス http://[ホスト名]/~[username] にてアクセスする。