# Proper configuration for Webdav?

**URL:** <https://www.ruby-forum.com/t/proper-configuration-for-webdav/214983>\
**Category:** NGINX\
**Created:** [December 17, 2011, 11:59pm UTC](https://www.ruby-forum.com/t/proper-configuration-for-webdav/214983 "2011-12-17T23:59:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [December 17, 2011, 11:59pm UTC](https://www.ruby-forum.com/t/proper-configuration-for-webdav/214983/1 "2011-12-17T23:59:09Z")

</div>

I’m trying to experiment with Webdav. So I’ve setup a simple  
configuration for that:

http {  
…

client\_body\_buffer\_size 128k;  
client\_body\_temp\_path /var/lib/nginx/client 1 2;

…  
}

server {  
listen 192.168.1.2:80;  
server\_name [webdav.domain.com](http://webdav.domain.com);  
access\_log /var/log/nginx/localhost.access.log main;  
error\_log /var/log/nginx/localhost.error.log error;

root /var/www/webdav;

location / {  
auth\_basic “Restricted Access”;  
auth\_basic\_user\_file htpasswd;  
dav\_access user:rw group:rw all:rw;  
dav\_methods PUT DELETE MKCOL COPY MOVE;  
autoindex on;  
autoindex\_exact\_size off;  
create\_full\_put\_path on;  
min\_delete\_depth 7;  
}  
}

When I open the [http://webdav.domain.com/](http://webdav.domain.com/) link in Nautilus (CentOS 5.7),  
I get a popup to enter the username/password and then I get an error  
message:  
Could not display “[http://webdav.domain.com/](http://webdav.domain.com/)”.  
The location is not a folder.

Am I missing something in the configuration? I tested the setup with a  
regular index.html file and the security popup shows and accepts my  
username/password so not something related to basic auth. However, when  
i look into logs, I see this:

2011/12/17 17:45:04 [error] 30059#0: \*1 no user/password was provided  
for basic authentication, client: 192.168.1.1, server:  
[webdav.domain.com](http://webdav.domain.com), request: “HEAD / HTTP/1.1”, host:  
“[webdav.domain.com](http://webdav.domain.com)”  
2011/12/17 17:49:39 [error] 30059#0: \*2 no user/password was provided  
for basic authentication, client: 192.168.1.1, server:  
[webdav.domain.com](http://webdav.domain.com), request: “HEAD / HTTP/1.1”, host:  
“[webdav.domain.com](http://webdav.domain.com)”

Every time the request fails, 2 lines are added into logs.

Thank you for your help.

Posted at Nginx Forum:

> **[Proper configuration for Webdav?](https://forum.nginx.org/read.php?2,220214,220214#msg-220214)**
>
> I'm trying to experiment with Webdav. So I've setup a simple configuration for that: http { ... client\_body\_buffer\_size 128k; client\_body\_temp\_path /var/lib/nginx/client 1 2; ... } server { listen 192.168
