htpasswd editor
1.0.0
HTPASSWD-Editor adalah CGI Perl sederhana untuk mengelola file HTPASSWD.
Mit
Ini adalah evolusi: http://www.perlmonks.org/?node_id=178482
HTPASSWD-Editor adalah CGI Perl sederhana untuk mengelola file HTPASSWD. Ini memungkinkan untuk menambah, mendaftar atau menghapus pengguna, itu juga memungkinkan pengguna yang diotensial untuk mengubah kata sandi. Ini dapat berguna untuk menambahkan manajemen kontrol akses dasar ke situs web statis (mis: dokumentasi yang dihasilkan dari markdown, pertama, 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 Hash Pada awal htpasswd.pl dan ubah entri dir dan 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>