配置Apache每个用户的个人Web站点

由 头发乱了 在 11-29-2003 00:44 发表:

配置Apache每个用户的个人Web站点

配置Apache每个用户的个人Web站点

/ 修改主配置文件

#vi /etc/httpd/conf/httpd.conf

/ 修该其中的以下配置

 1<ifmodule mod_userdir.c="">   
 2  
 3UserDir disable root /禁止roor使用个人站点,基于安全   
 4  
 5UserDir public_html   
 6  
 7<ifmodule>   
 8  
 9/ 设置用户的个人站点,将配置文件中的以下文件前的#号去掉   
10  
11<directory *="" home="" public_html="">   
12  
13AllowOverride FileInfo AuthConfig Limit   
14  
15Options MultiViews Indexes SymLinkeIfOwnerMatch IncludesNoExec   
16  
17<limit get="" options="" post="">   
18  
19order allow,deny   
20  
21Allow from all   
22  
23</limit>
24<limitexcept get="" options="" post="">   
25  
26order deny,allow   
27  
28Deny from all   
29  
30</limitexcept>
31   
32  
33/ OK restart httpd   
34  
35  
36  
37用户为创建自己的个人站点所需步骤   
38  
39#useradd abc   
40  
41#passwd ab</directory></ifmodule></ifmodule>
Published At
Categories with 服务器类
comments powered by Disqus