Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kakwa/htpasswd-editor

htpasswd-editor is a simple Perl CGI to manage htpasswd files
https://github.com/kakwa/htpasswd-editor

cgi htpasswd htpasswd-editor perl perl-cgi

Last synced: 19 days ago
JSON representation

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

Awesome Lists containing this project

README

        

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
```

* Change the file's rights:
```
> chown www-data|apache2|httpd
> chmod 600
```

* deploy the htpasswd.pl
```
cp htpasswd.pl
chmod 755 /htpasswd.pl
```

* edit the ```settings``` hash at the begin of htpasswd.pl and change the entries ```dir``` and ```htpasswd```.
```
vim /htpasswd.pl
```

* add the following configuration inside your vhost (htpasswd.pl is protected by the htpasswd it manages):
```
ScriptAlias /cgi-bin/
">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
AuthName "restrict posting"
AuthType Basic
AuthUserFile
require valid-user

```

[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/kakwa/htpasswd-editor/trend.png)](https://bitdeli.com/free "Bitdeli Badge")