Welcome! Log In Create A New Profile

Advanced

Re: Nginx Webdav & POST method

Jonathan Matthews
October 16, 2013 09:42AM
On 16 Oct 2013 13:09, <smainklh@free.fr> wrote:
>
> Thanks Maxim,
> I'll contact their support in order to understand its behavior.

If you discover that it does indeed use POSTs in an nginx-incompatible way,
you could use nginx to hack the request into something usable. [ NB I'd
only do this for an absolutely immutable appliance; in any other situation
I'd personally tell the devs their code was broken and we couldn't help:
don't inherit other people's technical debt without a commitment to a fix! ]

There's a directive (proxy_method?) which changes the verb when used in a
proxy_pass'd context.

You could just have a double pass through nginx, with the
publicly-listening server{} solely being responsible for doing s/POST/PUT/
, before proxy_pass'ing to the actual webdav server via a
127.0.0.0/8address. Use a map to define the verb, I suggest.

If it's not clear from the above how to do this, let me know and I'll run
up a test and guide you towards some config. I suggest it's not very
difficult to do, however ;-)

Yes, this is an utterly horrible hack. No, I have never used it in
production. Yes, there is an lie hidden in this paragraph.

Cheers,
Jonathan
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx Webdav & POST method

Anonymous User October 16, 2013 05:54AM

Re: Nginx Webdav & POST method

Maxim Dounin October 16, 2013 07:16AM

Re: Nginx Webdav & POST method

Anonymous User October 16, 2013 07:34AM

Re: Nginx Webdav & POST method

Maxim Dounin October 16, 2013 07:36AM

Re: Nginx Webdav & POST method

Anonymous User October 16, 2013 08:10AM

Re: Nginx Webdav & POST method

Jonathan Matthews October 16, 2013 09:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 204
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