server {
	listen       8090;
	server_name  localhost;

	#charset koi8-r;

	access_log  logs/8090.access.log  main;

	client_max_body_size 40m;
	client_body_temp_path /tmp;
	location / {
		# alias /var/www/html/web/;
		autoindex on;
		alias /var/www/files/;

		dav_methods  PUT DELETE;
		create_full_put_path   on;
		dav_access             group:rw all:r;
	}

	#error_page  404              /404.html;

	# redirect server error pages to the static page /50x.html
	#
	error_page   500 502 503 504  /50x.html;
	location = /50x.html {
		root   html;
	}

}

上传
curl -T ./software-1.0.3.ipk http://xxx.cn:8090/software-1.0.3.ipk

删除
curl -X "DELETE" http://xxx.cn:8090/software-1.0.3.ipk


备份地址: 【nginx配置dav上传+展示页面