SIMPLEST way to set up password protection for a static site, with basic admin UI?

Posted by Joseph Turian on Pro Webmasters See other posts from Pro Webmasters or by Joseph Turian
Published on 2012-09-19T16:28:48Z Indexed on 2012/09/19 21:51 UTC
Read the original article Hit count: 241

Filed under:
|
|

I have a static site.

I would like the simplest approach to password protecting a directory, with a basic admin UI for adding/removing users. I will have so few users that I don't care about performance.

I don't care if it's PHP or Django or whatever, I just want a complete software package.

  • Apache basic auth isn't good, because you can't log out. Nor is there a UI for adding users.

  • I tried throwing everything behind Django auth and serving the files through Django. However, Chrome treats all my text/css headers as text/plain, so I don't get any stylesheets showing.

  • I can't use mod_xsendfile on my server because I can't reconfigure Apache to add new modules. I think this approach is overkill anyway.

  • I can try configuring Nginx's X-Accel-Redirect, however that requires implementing all the Django code for auth myself, and I'd prefer an existing solution. However, this is my backup plan.

Is there a code package that implements authentication with basic admin for a static site?

© Pro Webmasters or respective owner

Related posts about htaccess

Related posts about authentication