Chinaunix首页 | 论坛 | 博客
  • 博客访问: 549945
  • 博文数量: 107
  • 博客积分: 5229
  • 博客等级: 大校
  • 技术积分: 1158
  • 用 户 组: 普通用户
  • 注册时间: 2007-06-08 10:50
文章分类
文章存档

2015年(1)

2014年(1)

2012年(5)

2011年(22)

2010年(12)

2009年(13)

2008年(34)

2007年(19)

我的朋友

分类: 系统运维

2009-05-19 20:53:54

Alias /test "/opt/lampp/htdocs/test"
<Directory "/opt/lampp/htdocs/test">
    AuthType Basic
    AuthName "Restricted Files"
    AuthUserFile /opt/lampp/etc/passwds
    Require user Admin
    AllowOverride AuthConfig Limit
    Order allow,deny
    Allow from all
</Directory>




# htpasswd -c /usr/local/apache/passwd/passwords rbowen
New password: mypassword
Re-type new password: mypassword
Adding password for user rbowen

阅读(514) | 评论(0) | 转发(0) |
0

上一篇:apache ssl

下一篇:ubuntu9.04配置vsftp

给主人留下些什么吧!~~