找回密码
 注册
搜索
热搜: 回贴
微赢网络技术论坛 门户 服务器 Linux/BSD 查看内容

apache指定用户访问

2009-12-20 13:55| 发布者: admin| 查看: 115| 评论: 0|原作者: 千年缘

AuthType 配置认证类型Basic(基本认证),Digest(摘要)
AuthName 在认证提示框中出现的内容
AuthUserFile 口令文件的路径

实例:
AuthName "yyszx"
AuthType Basic
AuthUserfile /etc/httpd/password
Require user tom #允许tom用户访问 user和group任选其一
Require group sales #允许sales组成员访问 user和group任选其一

添加用户:
htpasswd /etc/httpd/password tom





最新评论

QQ|小黑屋|最新主题|手机版|微赢网络技术论坛 ( 苏ICP备08020429号 )

GMT+8, 2024-9-29 13:19 , Processed in 0.215199 second(s), 12 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

返回顶部