Welcome! Log In Create A New Profile

Advanced

Re: Setting up a webDAV server

Francis Daly
January 02, 2022 07:28AM
On Sun, Jan 02, 2022 at 05:00:12AM -0500, BonVonKnobloch wrote:

Hi there,

> I also set 'open' permissions until the thing runs OK, then tighten them.
> Still getting '405' on PUT.

The dav module documentation and example config is at
https://nginx.org/en/docs/http/ngx_http_dav_module.html

Can you show the config that you use, plus the filesystem permissions,
plus the details of a sample request that works and a sample request
that fails?

The nginx error log (possibly at a more-detailed level than the default)
might also show why nginx is responding the way that it is.

Maybe having all of that information in one place will make it clear
why your system is not responding the way that you want it to.


For what it's worth: my suspicion is that the "location" blocks that you
have shown are not being used with the sample requests that you make; GET
works because you have another location (or the default) that is being
used to read from this part of the filesystem, and PUT fails with 405
because "dav_methods off;" is the effective configuration that applies.

If you change your most recent

location calendar

to be

location /calendar

then GET will possibly start to fail 404 until a PUT is done -- unless
you also adjust the "root" so that your url-names and filesystem-names
are compatible.

(Or maybe it will all Just Work -- it is not immediately
clear to me which file on your filesystem you want nginx-dav to
create-or-overwrite when you do "PUT /calendar/Geburtstage.ics" --
is it /usr/local/nginx/html/calendar/calendar/Geburtstage.ics, or
something else?)

Good luck with it,

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

Setting up a webDAV server

BonVonKnobloch December 31, 2021 06:59AM

Re: Setting up a webDAV server

Maxim Dounin December 31, 2021 09:50AM

Re: Setting up a webDAV server

BonVonKnobloch January 01, 2022 11:00AM

Re: Setting up a webDAV server

gariac January 01, 2022 02:34PM

Re: Setting up a webDAV server

BonVonKnobloch January 02, 2022 05:00AM

Re: Setting up a webDAV server

Francis Daly January 02, 2022 07:28AM

Re: Setting up a webDAV server

BonVonKnobloch January 02, 2022 08:51AM

Re: Setting up a webDAV server

Francis Daly January 03, 2022 06:54AM

Re: Setting up a webDAV server

BonVonKnobloch January 06, 2022 12:00PM

Re: Setting up a webDAV server

Maxim Dounin January 02, 2022 10:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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