Build a WebDAV server with NGINX
Introduction
- Configure a WebDAV Server with NGINX
- 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!