Setting up a webDAV server

BonVonKnobloch nginx-forum at forum.nginx.org
Fri Dec 31 11:59:46 UTC 2021


Hi,
I am new to nginx and am trying to get a simple webDAV server running.
I can use GET to read files, but PUT fails.
Using opensuse 15.3.

'# nginx -V
nginx version: nginx/1.20.2
built by gcc 7.5.0 (SUSE Linux) 
configure arguments: --with-http_dav_module'

nginx.conf is as supplied with the following added in 'server':

	location /html/calendar {
		root html/calendar;
		dav_methods PUT DELETE MKCOL COPY MOVE;
		dav_access	group:rw all:r;

	}
and the user changed to 'nginx'

After an unsuccessful PUT, wireshark shows:
'No.	Time	Source	Destination	Protocol	Length	Info
17	5.918827416	172.21.42.42	172.21.42.124	HTTP	3133	PUT
/calendar/Geburtstage.ics HTTP/1.1  (text/calendar)
No.	Time	Source	Destination	Protocol	Length	Info
19	5.918956256	172.21.42.124	172.21.42.42	HTTP	380	HTTP/1.1 405 Not Allowed 
(text/html)

It seems a permissions problem, but I don't know where.
Linux permissions:

The calendar directory is root:nginx 777
and the calendar files are root:nginx 666

can anyone point me to a starting point?

Many thanks,

Robert von Knobloch.

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,293215,293215#msg-293215



More information about the nginx mailing list