由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - Apache中如何加入用户和口令?
相关主题
Help!!!Description for file or directoryKorn shell script
Need help: Apache 2 problem, Solaris 10standalone sun box question
[转载] 关于unix用户帐号Shell Question
where is user.listRe: [转载] How to see a directory content in a http website?
Re: Solaris2.6,忘了root口令,有普通帐号,怎么办?FTP Help
怎么能查到自己的uid?Is there any software can D/L a whole directory?
能这样么?A simple question!
[转载] 再来一份UNIX的题。[转载] 问一个问题
相关话题的讨论汇总
话题: htaccess话题: pswd话题: user话题: apache话题: put
进入Unix版参与讨论
1 (共1页)
M*****o
发帖数: 13
1
我想限制一个主页被访问,我使用apache作为web server.请问如何加入用户和口令呢?
谢谢
kb
发帖数: 73
2
put it in a folder and put .htaccess in that folder. Specify the username
and password in .htaccess.
Google .htaccess to see its format.
a*****1
发帖数: 11
3

username
no, you can NOT put user/pswd in .htaccess
If you use only basic authentication, you generally
want to use 'htpasswd' to generate user/pswd pairs and put
the user/pswd file in a safe place, like your ServerRoot.
and then write down something in .htaccess of your local
directory or the corresponding | section
in httpd.conf, like
AuthType Basic
AuthName "passwd protection"
AuthUserFile /etc/apache2/ht_user_pswd_file
Require valid-user
You can "Require

【在 kb 的大作中提到】
: put it in a folder and put .htaccess in that folder. Specify the username
: and password in .htaccess.
: Google .htaccess to see its format.

1 (共1页)
进入Unix版参与讨论
相关主题
[转载] 问一个问题Re: Solaris2.6,忘了root口令,有普通帐号,怎么办?
gcc in mac OSX怎么能查到自己的uid?
[转载] 一个.htaccess 可以同时保护多个目录吗?能这样么?
mount question?[转载] 再来一份UNIX的题。
Help!!!Description for file or directoryKorn shell script
Need help: Apache 2 problem, Solaris 10standalone sun box question
[转载] 关于unix用户帐号Shell Question
where is user.listRe: [转载] How to see a directory content in a http website?
相关话题的讨论汇总
话题: htaccess话题: pswd话题: user话题: apache话题: put