三、从http://ip/dir/restircted.html下载文件,能被本地用户sisi通过路径
http://dtop30.dn.ws.com/restircted访问到,但是不可以被remote.com域访问。
1.创建http用户
[root@dtop30 ~]# htpasswd –cm /etc/httpd/.htpasswd sisi 系统可以不存在此用户
[root@dtop30 ~]# htpasswd –m /etc/httpd/.htpasswd tami 第2个以后的用户,请不要有"-c"
2.站点启用认证:...这部分更验证内容!
[root@dtop30 ~]# vim /etc/httpd/conf/httpd.conf

3.重启httpd。测试!
[root@dtop30 ~]# service httpd restart

输入用户名: sisi 密码:password ok!可以访问到了

4.字符界面测试。3.4.测试任选择一种即可!
[root@dtop30 ~]# links http://www30.dn.ws.com


ok!可以访问到了。
