Hi all,<br><br>I wish to install nginx as a WebDAV server to serve my GIT repos. But I failed.<br><br>I've installed Nginx 1.2.5 to my server with both http_dav_module and <a href="https://github.com/arut/nginx-dav-ext-module">nginx-dav-ext-module</a>.<br>
Then I configure the server like this:<br><br><font size="1"><span style="font-family:courier new,monospace"> server {<br> listen 80;<br> server_name <a href="http://foobar.com">foobar.com</a>;<br>
charset utf-8;<br><br> dav_methods PUT DELETE MKCOL COPY MOVE;<br> dav_ext_methods PROPFIND OPTIONS;<br><br><br> # turn on auth_basic<br> auth_basic "Private area";<br>
auth_basic_user_file "/var/gitrepos/.htpasswd";<br> create_full_put_path on;<br> dav_access group:rw all:r;<br><br> location / {<br> root /var/gitrepos;<br>
index index.html index.htm;<br> autoindex on;<br> }<br> <br> location ~ /\.ht {<br> deny all;<br> }<br> }</span></font><br><br>The server start successfully.<br>
And I've created some repo on the server side.<br><br>Then when I tried to push something to the server, git reports an error:<br>"<span style="color:rgb(255,0,0)"><span style="background-color:rgb(255,255,255)"><span style="font-family:courier new,monospace">error: no DAV locking support on <a href="http://user@foobar.com/test-repo/">http://user@foobar.com/test-repo/</a></span></span></span>"<br>
<br>And when I try to clone a repo that I created and pushed earlier on server, I get this error:<br>"<span style="color:rgb(255,0,0)"><span style="font-family:courier new,monospace">warning: You appear to have cloned an empty repository</span></span>"<br>
<br><br>I'm confused. Please give me some suggestion. Thanks!<br><br><br clear="all">Koala<br>