Welcome! Log In Create A New Profile

Advanced

Re: WebDAV and anonymous+authenticated access

Francis Daly
September 22, 2019 08:44AM
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 ?

Without knowing about the details of WebDAV, I suspect that the simplest
way would probably be to have two urls -- /ro-share and /rw-share --
that share the same directory. Require authentication on "rw"; and not on
"ro"; and let the user choose which they want to access.

> At the moment my WebDAV setup works correctly but only for authenticated
> users. Authentication is always required if I try to browse to
> https://myserver/myshare via a web browser.
>
> How can I solve this ?

There is no concept of "optional http basic authentication" that a
generic browser will work with (I believe), so if you have configured
authentication by http basic auth, then you probably have to use two urls.

There is a concept of "optional ssl client certificates", so if you have
configured authentication by client certificates, then you possibly can use
a shared url, and react differently to "valid cert" and "no valid cert".

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

WebDAV and anonymous+authenticated access

gerard2019 September 22, 2019 06:40AM

Re: WebDAV and anonymous+authenticated access

Francis Daly September 22, 2019 08:44AM

Re: WebDAV and anonymous+authenticated access

Francis Daly September 22, 2019 12:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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