Welcome! Log In Create A New Profile

Advanced

Re: Nginx proxying WebDAV = no love

July 09, 2009 03:00AM
On Wed, Jul 08, 2009 at 02:14:06PM -0700, Cliff Wells wrote:

> I'm experimenting with WebDAV using pywebdav:
>
> http://code.google.com/p/pywebdav/
>
> It appears to work quite well if I connect to it
> directly (using either Nautilus and Cadaver as client).
>
> However, when I attempt to proxy to it via Nginx,
> I get messages that it's not a WebDAV-enabled share.
>
> Here's my nginx.conf:
>
> http {
> include mime.types;
> default_type application/octet-stream;
>
> server {
> listen 80;
> server_name _;
>
> location / {
> proxy_pass_header Server;
> proxy_set_header Host $http_host;
> proxy_set_header X-Forwarded-For $remote_addr;
> proxy_pass http://127.0.0.1:8008;
> }
> }
> }
>
>
> Cadaver reports the following (nautilus message isn't too informative):
>
> $ cadaver http://localhost/
> Could not access / (not WebDAV-enabled?):
> Unknown transfer-coding in response
> Connection to `localhost' closed.
> dav:!>
>
>
> I can see the request reaches pywebdav:
>
> localhost - - [08/Jul/2009 14:10:40] "OPTIONS / HTTP/1.0" 200 -
> localhost - - [08/Jul/2009 14:10:40] "PROPFIND / HTTP/1.0" 207 -
>
>
> Nginx access log shows:
>
> 127.0.0.1 - - [08/Jul/2009:14:11:20 -0700] "OPTIONS / HTTP/1.1" 200 0 "-" "cadaver/0.23.2 neon/0.28.2"
> 127.0.0.1 - - [08/Jul/2009:14:11:20 -0700] "PROPFIND / HTTP/1.1" 207 593 "-" "cadaver/0.23.2 neon/0.28.2"
>
>
> Nginx error log shows nothing.

Coud you create debug log of the requests ?


--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

Nginx proxying WebDAV = no love

Cliff Wells July 08, 2009 05:14PM

Re: Nginx proxying WebDAV = no love

mike July 08, 2009 06:08PM

Re: Nginx proxying WebDAV = no love

Cliff Wells July 08, 2009 06:27PM

Re: Nginx proxying WebDAV = no love

mike July 08, 2009 07:07PM

Re: Nginx proxying WebDAV = no love

Dave Cheney July 08, 2009 06:29PM

Re: Nginx proxying WebDAV = no love

Igor Sysoev July 09, 2009 03:00AM

Re: Nginx proxying WebDAV = no love

Cliff Wells July 09, 2009 05:20PM

Re: Nginx proxying WebDAV = no love

Igor Sysoev July 10, 2009 03:07AM

Re: Nginx proxying WebDAV = no love

Dave Cheney July 10, 2009 03:43AM

Re: Nginx proxying WebDAV = no love

Igor Sysoev July 10, 2009 03:55AM

Re: Nginx proxying WebDAV = no love

Cliff Wells July 10, 2009 02:53PM

Re: Nginx proxying WebDAV = no love

Dave Cheney July 09, 2009 04:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 151
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready