Stupid question: why not use nginx? Configuring basic auth is about 4 lines of config.
Nginx is fairly simple and is overkill only for dev setup for which you don't need auth anyway.
Nginx is fairly simple and is overkill only for dev setup for which you don't need auth anyway.