Example of basic digest authentication as middleware in nginx (OpenResty).
- OpenResty - enhanced version of nginx with LuaJIT support.
- Memcached - in-memory storage.
- PHP - interpreter for php scripts.
Use Docker for quick start.
docker-compose up --build
- Open browser
http://127.0.0.1:8090/
. Enter usernametest
and passwordtest
. Done! - Open browser
http://127.0.0.1:8091/
. This page will be opened without authorization.