Any way to reset r->request_body to avoid conflicts between modules?

2019-09-22 Thread ptcell
I have a preaccess filter in my module that loads in the request_body with `ngx_http_read_client_request_body` (it basically scans the buffer for security violations, no modifications). I don't discard the buffer and this module works fine when proxying POST requests or multiform data to a downstr

Re: Failing to cache requests

2019-09-22 Thread Francis Daly
On Sun, Sep 22, 2019 at 09:37:51AM -0500, Andrei wrote: Hi there, > Thanks for the confirmation! Is there a way to selectively ignore only > specific "set-cookie"/cookies, versus all "set-cookie" headers to force > cache? Not that I am aware of, for proxy_cache. > Or even better to remove/strip

Re: WebDAV and anonymous+authenticated access

2019-09-22 Thread Francis Daly
On Sun, Sep 22, 2019 at 01:42:36PM +0100, Francis Daly wrote: > On Sun, Sep 22, 2019 at 12:39:37PM +0200, Marc wrote: Hi there, > Untested suggestions... and one more, also untested... > > Is it possible to setup nginx so that it shares a directory via WebDAV > > which would have read+write acc

Re: Failing to cache requests

2019-09-22 Thread Andrei
Hello, Thanks for the confirmation! Is there a way to selectively ignore only specific "set-cookie"/cookies, versus all "set-cookie" headers to force cache? Or even better to remove/strip certain cookies with a regex match? I imagine this way I can strip the cookies that aren't relevant, it would

Re: WebDAV and anonymous+authenticated access

2019-09-22 Thread Francis Daly
On Sun, Sep 22, 2019 at 12:39:37PM +0200, Marc wrote: Hi there, Untested suggestions... > Is it possible to setup nginx so that it shares a directory via WebDAV > which would have read+write access for authenticated users and simple > read access for non-authenticated/guest/anonymous users ? Wi

Re: Failing to cache requests

2019-09-22 Thread Francis Daly
On Sat, Sep 21, 2019 at 01:02:57PM -0500, Andrei wrote: Hi there, > I'm having a hard time understanding why these requests aren't being cached > for 10 minutes? Is it the cookies? Yes. http://nginx.org/r/proxy_cache_valid """ If the header includes the “Set-Cookie” field, such a response will

WebDAV and anonymous+authenticated access

2019-09-22 Thread Marc
Hello, Is it possible to setup nginx so that it shares a directory via WebDAV which would have read+write access for authenticated users and simple read access for non-authenticated/guest/anonymous users ? At the moment my WebDAV setup works correctly but only for authenticated users. Authenticat