GitXplorerGitXplorer
k

htpasswd-editor

public
6 stars
2 forks
0 issues

Commits

List of commits on branch master.
Unverified
491ae2da7fc26a15711a471b658c7ada48b349f1

Merge pull request #1 from bitdeli-chef/master

kkakwa committed 11 years ago
Unverified
c45b46c5c034d60b670c1421b7fce3a979c0d7b2

Add a Bitdeli badge to README

bbitdeli-chef committed 11 years ago
Unverified
daa2e276d8ff61d0cfaac4cdc20a1031f418b30a

Update README.md

kkakwa committed 11 years ago
Unverified
ff98efe13abd02466c5bb7518ff323ecbf8170f7

Update README.md

kkakwa committed 11 years ago
Unverified
764e8aaf28e60228433ddef79e957ed72560130c

Update README.md

kkakwa committed 11 years ago
Unverified
fc1dac666a5666bcb0bbfbb4946d18a032e8039e

adding a simple screenshot for the presentation

committed 11 years ago

README

The README file for this repository.

htpasswd-editor

htpasswd-editor is a simple Perl CGI to manage htpasswd files.

License

MIT

It's an evolution of: http://www.perlmonks.org/?node_id=178482

Description

htpasswd-editor is a simple Perl CGI to manage htpasswd files. It permits to add, list or remove users, it also permits an authentificated user to change his password. It can be useful for adding basic access control management to a static website (ex: documentation generated from Markdown, Rst, Rdoc...).

Deployment

  • Create an htpasswd file:
> htpasswd -c </path/to/htpasswd> <initial user>
  • Change the file's rights:
> chown www-data|apache2|httpd </path/to/htpasswd>
> chmod 600 </path/to/htpasswd>
  • deploy the htpasswd.pl
cp htpasswd.pl </path/to/cgi-dir>
chmod 755 </path/to/cgi-dir>/htpasswd.pl
  • edit the settings hash at the begin of htpasswd.pl and change the entries dir and htpasswd.
vim </path/to/cgi-dir>/htpasswd.pl
  • add the following configuration inside your vhost (htpasswd.pl is protected by the htpasswd it manages):
  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>

Bitdeli Badge