WebDAV and anonymous+authenticated access
Francis Daly
francis at daoine.org
Sun Sep 22 16:13:18 UTC 2019
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 access for authenticated users and simple
> > read access for non-authenticated/guest/anonymous users ?
http://nginx.org/en/docs/http/ngx_http_dav_module.html includes an
example configuration that includes "limit_except GET {".
Would something like that work for you?
Require authorization for any method other than GET -- GET is probably
read-only, and anything else is possibly read-write.
(You may need to investigate whether OPTIONS needs to be allowed in the
same way as GET.)
f
--
Francis Daly francis at daoine.org
More information about the nginx
mailing list