kb
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.
and password in .htaccess.
Google .htaccess to see its format.
a*1
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
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.
相关阅读
AIX和其他Unix比较其优劣在什么地方?[转载] 请教:生成的ps和pdf的页边距不一样,怎么回事?Mounting NFS filesystems -- ERROR 请教大侠Metawire.org一个免费提供OpenBSD Shell的优秀组织显示操作系统的版本号等信息的命令是什么[转载] 这里有人用过debugger xdb吗?shell problem: how to "grep" in this case?how to delete these files怎么复制文件夹的名字但内容为空?菜鸟2问题-about shell programmingVeritas volume manager[转载] 分特,一个弱问题Solaris system administrator help[转载] How to use debugger xdb?[转载] anybody give me a rootkit?stty hupcl ixon ixoffunix中有没有类似于dos里面 tree 的命令? 如何判定一个文件下载已经结束?[转载] help: linux 的 2G 文件大小限制用find查找文件是如何过滤无用信息