Build a WebDAV server with NGINX

Ray Lee | 李宗叡
Learn or Die
Published in
Nov 16, 2019

My Blog

中文版

Introduction

  1. Configure a WebDAV Server with NGINX
  2. User cloud access specified folder after login

Environment

GCP Instance Ubuntu 18.04 NGINX Root

Install

Turn on gzip

Bandwidth is limited, and the performance of machines is always faster, so we compress data with gzip before sending them to customer to decrease the amount of traffic

/gzip_/: Look for lines containing gzip_ s/#\ //g: Replace # with

It means that we uncomment the gzip

Configure WebDAV Server

Create config file

Config

Create users

  • 輸入 user

Print out the user name, tee will print the user and direct it into /etc/nginx/.credential.list file

  • Enter password

Turn password to encrypted characters with openssl passwd -apr1 rule, print and direct into /etc/nginx/.credentials.list file. -a = append

It’s done!

Write Medium in Markdown? Try Markdium!

--

--

Ray Lee | 李宗叡
Learn or Die

It's Ray. I do both backend and frontend, but more focus on backend. I like coding, and would like to see the whole picture of a product.