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;
}
}
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
上传
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