Added basic authentication support for nginx