Setting up a webDAV server

Maxim Dounin mdounin at
Sun Jan 2 15:29:28 UTC 2022


On Sat, Jan 01, 2022 at 11:00:33AM -0500, BonVonKnobloch wrote:

> Thanks for your help Maxim, but I am afraid that I still can't get PUT to
> work. 
> File permissions are fine, so I assume that my nginx.conf is still wrong:
> 	location calendar {

It is.  The location prefix doesn't start with "/", so it won't 
match any valid URI.  You have to use "location /calendar/" 
instead to match requests to "/calendar/...".

> 	    root html/calendar;

And you probably want to use "root html;" instead (or just comment 
it out to use the server's one), unless your files are in <prefix> 
+ "html/calendar/calendar" directory.

See for some 
basic explanation on how nginx processes requests, and 
the "location" and "root" directives documentation for additional 

Beginner's guide ( 
might be also helpful.

Hope this helps.

Maxim Dounin

More information about the nginx mailing list