LoveUnix » 其他UNIX & Linux » 用apache为每个人设定自己的个人主页
让LU留住您的每

一天 让LU博客留住您的每一天
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]

2007-3-6 11:37 taelian
晕  没人帮忙一下吗

2007-8-7 14:52 myciciy
看来大家都不会啊啊  ;P ;P

2007-8-7 22:33 Gavin_ygf
回复 #3 myciciy 的帖子

DirectoryIndex  index.html default.html index.htm  default.htm
没有指定你所设定的文件

修改为
DirectoryIndex public_html  index.html default.html index.htm  default.htm

你试试

页: [1]


Powered by Discuz! Archiver 5.5.0  © 2001-2006 Comsenz Inc.