Forum: NGINX How to proxy a webdav request

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
2974d09ac2541e892966b762aad84943?d=identicon&s=25 iravana (Guest)
on 2009-04-09 06:52
(Received via mailing list)
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 to another server https://my.webdavserver.com.
I tried to do this by setting up a proxy like this:

location /webdav/ {
        proxy_pass            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: http://forum.nginx.org/read.php?2,934,934#msg-934
2974d09ac2541e892966b762aad84943?d=identicon&s=25 iravana (Guest)
on 2009-04-09 22:11
(Received via mailing list)
Bump. Anyone ?

thanks

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,934,942#msg-942
5640e332954fc0006aea97a155ce0afd?d=identicon&s=25 Igor Sysoev (Guest)
on 2009-04-10 09:13
(Received via mailing list)
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.
This topic is locked and can not be replied to.