2007-3-5 21:12
taelian
用apache为每个人设定自己的个人主页
[size=12px]我在网上有看到关于apache为每个员工设定自己的个人主页,不过我做了就是不行,不知道是什么原因,
把相关配置信息和我做的步骤写出来,希望大家帮我更正~~
useradd webb
passwd webb
cd /home/webb
mkdir public_html
将home,web,public的目录及文件的权限都改为755
把主页文件放到public_html 里 index.html
httpd.conf的配置如下:
# UserDir: The name of the directory which is appended onto a user's home
# directory if a ~user request is received.
#
<IfModule mod_userdir.c>
UserDir public_html
</IfModule># 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
DirectoryIndex index.html index.htm default.html default.htm
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
#
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index. Separate multiple entries with spaces.
#
<IfModule mod_dir.c>
DirectoryIndex index.html default.html index.htm default.htm[/size]