由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
BuildingWeb版 - 另一个问题,关于.htpasswd的
相关主题
再问一个问题:password protectedwhere to find the program htpasswd?
how to add password protection using Dreamweaver?再请教一个APACHE中设CGI的问题
[转载] htpasswd密码窗口一问
How to use this htpasswd ?apache中文问题。急!(不能修改httpd.conf)
cgi-bin options in apache server?如何用自己家的电脑作为web server, 建立自己的网站?
Can not start Apache 2 with 用户认证. :-(how to configure apache to support mobile browsing traffic?
question: disable the index page browsing for apache请问如何用PERL cgi拿到登陆网站的用户名?
Re: how to set up a password protection for accessing a certain hyperlAny other ways to add password protection on NT server?
相关话题的讨论汇总
话题: htpasswd话题: htaccess话题: apache话题: directory话题: conf
进入BuildingWeb版参与讨论
1 (共1页)
t****r
发帖数: 106
1
不知道怎么保护目录。请指教
g**a
发帖数: 6
2
什么系统?【 在 tansir (HappyLife) 的大作中提到: 】
t****r
发帖数: 106
3
UNIX下(web),我看不少就是用.htaccess 和 .htpasswd好像就行了
,不过试了试没成功。不知应该怎么用?请指教

【在 g**a 的大作中提到】
: 什么系统?【 在 tansir (HappyLife) 的大作中提到: 】
m*****e
发帖数: 4193
4
Sometimes you need to change the apache configuration, especially
the AllowOverride directive. If it's set to None then probably
you won't be able to use .htaccess. Check the apache FAQ online.

【在 t****r 的大作中提到】
: UNIX下(web),我看不少就是用.htaccess 和 .htpasswd好像就行了
: ,不过试了试没成功。不知应该怎么用?请指教

m****k
发帖数: 51
5
Microbe is right. Besides that you need to put a .htaccess file
in the directory you want to protect. here is a example of .htaccess:
AuthName "Protected Directory"
AuthType Basic
AuthUserFile /usr/local/apache/conf/htpasswd.users
require valid-user
And you need to use htpasswd to create the password file
/usr/local/apache/conf/htpasswd.users which contain the users and passwords.


【在 m*****e 的大作中提到】
: Sometimes you need to change the apache configuration, especially
: the AllowOverride directive. If it's set to None then probably
: you won't be able to use .htaccess. Check the apache FAQ online.

1 (共1页)
进入BuildingWeb版参与讨论
相关主题
Any other ways to add password protection on NT server?cgi-bin options in apache server?
请教高手:如何在html中创建link直接连到目录Can not start Apache 2 with 用户认证. :-(
question about web security. thanks!question: disable the index page browsing for apache
怎样给webpage 里的一个文件设密码Re: how to set up a password protection for accessing a certain hyperl
再问一个问题:password protectedwhere to find the program htpasswd?
how to add password protection using Dreamweaver?再请教一个APACHE中设CGI的问题
[转载] htpasswd密码窗口一问
How to use this htpasswd ?apache中文问题。急!(不能修改httpd.conf)
相关话题的讨论汇总
话题: htpasswd话题: htaccess话题: apache话题: directory话题: conf