UserDir
WebサーバApacheのユーザディレクトリ名を指定するディレクティブ。ユーザのホームページを公開するときはこれを次のように変更し、有効にする。
UserDir Disable ↓ #UserDir Disabe
#UserDir public_html ↓ UserDir public_html
デフォルト値は次の通り。
- UNIX系ではホームディレクトリ内のディレクトリpublic_html
- Windowsの場合、My Documents\My Websiteフォルダ
WindowsではC:/home/*/public_htmlのように定義することもできる。
ユーザのディレクトリへのアクセス制御が標準では無効(設定情報はコメントアウトされて)いるのでこれをコメントで無くせばよい。先頭の#を消す。
たとえば、Mac OS Xでは次のように記述されている。
<Directory "/Users/sakabe/Sites/">
Options Indexes MultiViews ExecCGI FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>