# How to give location of WebDAV lock database in nginx.conf?

**URL:** <https://www.ruby-forum.com/t/how-to-give-location-of-webdav-lock-database-in-nginx-conf/222044>\
**Category:** NGINX\
**Created:** [August 9, 2012, 9:14pm UTC](https://www.ruby-forum.com/t/how-to-give-location-of-webdav-lock-database-in-nginx-conf/222044 "2012-08-09T21:14: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:** [August 9, 2012, 9:14pm UTC](https://www.ruby-forum.com/t/how-to-give-location-of-webdav-lock-database-in-nginx-conf/222044/1 "2012-08-09T21:14:40Z")

</div>

How to write the below code in nginx.conf which is currently in  
httpd.conf?

 # Location of the WebDAV lock database. DAVLockDB /var/lib/dav/lockdb

I have written below:

if (mod\_dav\_fs.c) {  
# Location of the WebDAV lock database.  
location ~ /var/lib/dav/lockdb {  
DAVLockDB  
}  
}

Not sure how to write DAVLockDB inside {}.

Thanks,
