module dav with http_auth
Cédric Jeanneret
cedric.jeanneret at camptocamp.com
Sat Mar 26 22:24:56 MSK 2011
Hello!
I'm wanting to create my own "firefox sync" service. As I could read,
it's only a dav service without any special thing. So I tried to
create it like, enabling the dav module[1] in nginx. I've read the
example, but I think there's something missing. Here's my
configuration:
server {
listen (ipv4)443;
listen [(ipv6)]:443;
server_name weave.domain.tld;
access_log /var/log/nginx/weave_access.log main;
error_log /var/log/nginx/weave_error.log info;
ssl on;
ssl_certificate /etc/nginx/ssl/all.signed.crt;
ssl_certificate_key /etc/nginx/ssl/all.key;
root /var/www/vhosts/weaver.domain/htdocs ;
client_body_temp_path /var/www/vhosts/weave.domain/tmp ;
dav_methods PUT DELETE MKCOL COPY MOVE;
create_full_put_path on;
dav_access user:rw ;
location ~ /user/([a-z]+)/.* {
auth_basic 'Firefox Sync';
auth_basic_user_file /var/www/vhosts/weave.domain/$1.htpasswd;
}
}
I've created a user 8say, "my_example") and related password, so that
I've a " /var/www/vhosts/weave.domain/my_example.htpasswd" file
I've created the related user/my_example directory.
But nginx tells me:
2011/03/26 20:22:16 [error] 23025#0: *144 no user/password was
provided for basic authentication, client: (ipv4), server:
weave.domain.tld, request: "OPTIONS /user/my_example/ HTTP/1.1", host:
"weave.domain.tld"
Nginx version is
nginx -v
nginx version: nginx/0.8.53
I don't understand this error - I use cadaver for my test, and provide
the username/password... I thikn the "dav_access" should give the
rights to read and write to authenticated users... ?
Thank you in advance!
Cheers,
C.
[1] http://wiki.nginx.org/HttpDavModule
More information about the nginx
mailing list