htpasswd editor
1.0.0
htpasswd-editor是管理HTPASSWD文件的简单PERL CGI。
麻省理工学院
这是:http://www.perlmonks.org/?node_id=178482的演变
htpasswd-editor是管理HTPASSWD文件的简单PERL CGI。它允许添加,列出或删除用户,还允许经过认证的用户更改其密码。它对于将基本访问控制管理添加到静态网站上可能很有用(例如:Markdown,RST,RDOC ...)。
> htpasswd -c </path/to/htpasswd> <initial user>
> chown www-data|apache2|httpd </path/to/htpasswd>
> chmod 600 </path/to/htpasswd>
cp htpasswd.pl </path/to/cgi-dir>
chmod 755 </path/to/cgi-dir>/htpasswd.pl
settings哈希,然后更改条目dir和htpasswd 。 vim </path/to/cgi-dir>/htpasswd.pl
ScriptAlias /cgi-bin/ </path/to/cgi-dir>
<Directory "</path/to/cgi-dir>">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
AuthName "restrict posting"
AuthType Basic
AuthUserFile </path/to/htpasswd>
require valid-user
</Directory>