Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/kakwa/htpasswd-editor
- Owner: kakwa
- License: mit
- Created: 2013-07-29T07:16:37.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-14T19:08:18.000Z (almost 11 years ago)
- Last Synced: 2024-04-16T18:34:01.342Z (8 months ago)
- Topics: cgi, htpasswd, htpasswd-editor, perl, perl-cgi
- Language: Perl
- Size: 352 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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")