Chinaunix首页 | 论坛 | 博客
  • 博客访问: 175759
  • 博文数量: 159
  • 博客积分: 7007
  • 博客等级: 准将
  • 技术积分: 1750
  • 用 户 组: 普通用户
  • 注册时间: 2008-06-17 15:05
文章分类

全部博文(159)

文章存档

2010年(39)

2009年(106)

2008年(14)

我的朋友

分类: LINUX

2009-09-28 17:25:06

[root@webserver conf]# vi httpd.conf

    AuthType Basic
    AuthName "awstat access"
    AuthUserFile "/etc/awstats/htpasswd"
    Require valid-user

[root@webserver conf]# /usr/local/httpd/bin/htpasswd -c /etc/awstats/htpasswd admini
New password:
Re-type new password:
Adding password for user admini
[root@webserver conf]# /etc/rc.d/init.d/apache stop
[root@webserver conf]# /etc/rc.d/init.d/apache start
然后访问就要密码才能访问了
阅读(367) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~