Skip to content

Instantly share code, notes, and snippets.

@gotbadger
Created June 19, 2012 08:45
Show Gist options
  • Save gotbadger/2953068 to your computer and use it in GitHub Desktop.
Save gotbadger/2953068 to your computer and use it in GitHub Desktop.
Nginx PUT
server {
listen 8880;
root /var/www;
index index.html index.htm;
server_name localhost;
location / {
autoindex on;
client_body_temp_path /tmp/client_temp;
dav_methods PUT DELETE MKCOL COPY MOVE;
create_full_put_path on;
dav_access group:rw all:r;
limit_except GET {
allow 192.168.1.0/32;
deny all;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment