I've just setup nginx and testing the config file nginx.conf with:
is giving:
I have the file in the directory with path pointing to it in nginx.conf as per the doc's:
http://wiki.nginx.org/HttpAuthDigestModule
and I've had no problem getting htdigest working in apache.
I've had to deinstall/reinstall nginx to add the auth_digest module, and when I make config - it's selected - so it appears to be installed.
This is what I have:
Any thoughts on why digest auth may not be working?
Code:
nginx -t
is giving:
Code:
nginx: [emerg] unknown directive "auth_digest_user_file" in /usr/local/etc/nginx/nginx.conf:54
nginx: configuration file /usr/local/etc/nginx/nginx.conf test failed
I have the file in the directory with path pointing to it in nginx.conf as per the doc's:
http://wiki.nginx.org/HttpAuthDigestModule
and I've had no problem getting htdigest working in apache.
I've had to deinstall/reinstall nginx to add the auth_digest module, and when I make config - it's selected - so it appears to be installed.
This is what I have:
Code:
auth_digest_user_file /usr/local/www/passwd.digest;
location /private{
auth_digest 'These aren't the files you're looking for.';
}
Any thoughts on why digest auth may not be working?