Does auth_basic changes require a service reload?

Maxim Dounin mdounin at mdounin.ru
Thu Apr 26 09:36:21 UTC 2012


Hello!

On Wed, Apr 25, 2012 at 12:59:50PM -0400, TECK wrote:

> Hi,
> 
> I'm wondering if I need to perform a "service nginx restart", if I do
> any changes to htpasswd file:
> location / {
>     auth_basic           "closed site";
>     auth_basic_user_file htpasswd;
> }
> 
> I noticed that sometimes it works without reloading the service.

The htpasswd file is looked up at runtime, no reload/restart 
needed after it's change.

Maxim Dounin



More information about the nginx mailing list