1、如果原来的http.conf文件中有关于下面的记录,就修改为下面的状态。如没有,直接把下列内容添加到httpd.conf文件中。
<IfModule mod_userdir.c>
#UserDir disable
UserDir public_html
</IfModule>
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
2、chmod 711 /home/user_name/
chmod 755 /home/user_name/test
重启apache
测试:http://server_ip/~user_name可以访问到用户家目录下的文件。

Nginx+PHP+MySQL双机
Ubuntu终端服务客户端
LAMP架构:配置Linux
Ubuntu 8.10 局域网网
Darkhttpd:Linux 下
用Ubuntu做WEB服务器
asterisk安装实录之Ce
让XManager也支持中文