Skip to content

Instantly share code, notes, and snippets.

@puzan
Created June 19, 2020 20:30
Show Gist options
  • Save puzan/3e2f7b9bdd07e30764ac0d07a387113b to your computer and use it in GitHub Desktop.
Save puzan/3e2f7b9bdd07e30764ac0d07a387113b to your computer and use it in GitHub Desktop.
puzan.info - WebDav за https proxy
server {
listen 80;
server_name www.read.puzan.info read.puzan.info;
location / {
# Rewrite destination header if it starts with https
set $destination $http_destination;
if ($destination ~ ^https://(.+)) {
set $destination http://$1;
more_set_input_headers "Destination: $destination";
}
root /data/read;
dav_methods PUT DELETE MKCOL COPY MOVE;
dav_ext_methods PROPFIND OPTIONS;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment