# How to proxy a webdav request

**URL:** <https://www.ruby-forum.com/t/how-to-proxy-a-webdav-request/165108>\
**Category:** NGINX\
**Created:** [April 9, 2009, 6:52am UTC](https://www.ruby-forum.com/t/how-to-proxy-a-webdav-request/165108 "2009-04-09T06:52:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iravana](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/d26b3c/32.png) [@iravana](https://www.ruby-forum.com/u/iravana)\
**Post date:** [April 9, 2009, 6:52am UTC](https://www.ruby-forum.com/t/how-to-proxy-a-webdav-request/165108/1 "2009-04-09T06:52:24Z")

</div>

All,

I am trying to proxy a PROPFIND request to a webdav server. So  
essentially I am trying to send any requests made to  
[https://localhost/webdav](https://localhost/webdav) to another server [https://my.webdavserver.com](https://my.webdavserver.com).  
I tried to do this by setting up a proxy like this:

location /webdav/ {  
proxy\_pass [https://my.webdavserver.com/](https://my.webdavserver.com/);  
proxy\_pass\_header Server;  
proxy\_set\_header Host $http\_host;  
}

This is not working as the PROPFIND request is being converted into a  
GET by nginx when it sends the request to the proxied server. What am I  
missing or doing wrong? Have been fighting with this for quite a while.  
If anyone has any ideas, would really appreciate some help.

thanks  
Ira

Posted at Nginx Forum: [How to proxy a webdav request](http://forum.nginx.org/read.php?2,934,934#msg-934)

---

<div class="post-metadata">

**Author:** ![iravana](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/d26b3c/32.png) [@iravana](https://www.ruby-forum.com/u/iravana)\
**Post date:** [April 9, 2009, 10:11pm UTC](https://www.ruby-forum.com/t/how-to-proxy-a-webdav-request/165108/2 "2009-04-09T22:11:27Z")

</div>

Bump. Anyone ?

thanks

Posted at Nginx Forum: [Re: How to proxy a webdav request](http://forum.nginx.org/read.php?2,934,942#msg-942)

---

<div class="post-metadata">

**Author:** ![iravana](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/d26b3c/32.png) [@iravana](https://www.ruby-forum.com/u/iravana)\
**Post date:** [April 10, 2009, 9:13am UTC](https://www.ruby-forum.com/t/how-to-proxy-a-webdav-request/165108/3 "2009-04-10T09:13:44Z")

</div>

On Thu, Apr 09, 2009 at 12:38:47AM -0400, iravana wrote:

> This is not working as the PROPFIND request is being converted into a GET by nginx when it sends the request to the proxied server. What am I missing or doing wrong? Have been fighting with this for quite a while. If anyone has any ideas, would really appreciate some help.  
> nginx does not change request method in this case. So the problem is not  
> here.
