Welcome! Log In Create A New Profile

Advanced

module dav with http_auth

Cédric Jeanneret
March 26, 2011 03:26PM
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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

module dav with http_auth

Cédric Jeanneret March 26, 2011 03:26PM

Re: module dav with http_auth

Francis Daly March 27, 2011 07:38AM

Re: module dav with http_auth

Cédric Jeanneret March 27, 2011 12:46PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 259
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready