# Need help on WebDAV + GIT server setup

**URL:** <https://www.ruby-forum.com/t/need-help-on-webdav-git-server-setup/224495>\
**Category:** NGINX\
**Created:** [November 14, 2012, 5:21am UTC](https://www.ruby-forum.com/t/need-help-on-webdav-git-server-setup/224495 "2012-11-14T05:21:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [November 14, 2012, 5:21am UTC](https://www.ruby-forum.com/t/need-help-on-webdav-git-server-setup/224495/1 "2012-11-14T05:21:40Z")

</div>

Hi all,

I wish to install nginx as a WebDAV server to serve my GIT repos. But I  
failed.

I’ve installed Nginx 1.2.5 to my server with both http\_dav\_module and  
nginx-dav-ext-module [https://github.com/arut/nginx-dav-ext-module](https://github.com/arut/nginx-dav-ext-module).  
Then I configure the server like this:

```
server {
    listen 80;
    server_name foobar.com;
    charset utf-8;

    dav_methods PUT DELETE MKCOL COPY MOVE;
    dav_ext_methods PROPFIND OPTIONS;

    # turn on auth_basic
    auth_basic "Private area";
    auth_basic_user_file "/var/gitrepos/.htpasswd";
    create_full_put_path on;
    dav_access group:rw all:r;

    location / {
        root /var/gitrepos;
        index index.html index.htm;
        autoindex on;
    }

    location ~ /\.ht {
        deny all;
    }
}

```

The server start successfully.  
And I’ve created some repo on the server side.

Then when I tried to push something to the server, git reports an error:  
“error: no DAV locking support on [http://removed\_email\_address@domain.invalid/test-repo/](http://removed_email_address@domain.invalid/test-repo/)”

And when I try to clone a repo that I created and pushed earlier on  
server,  
I get this error:  
“warning: You appear to have cloned an empty repository”

I’m confused. Please give me some suggestion. Thanks!

Koala
