Last active
July 17, 2017 05:43
-
-
Save dongyuwei/9db546b762c7808126ac52e9e7bd265a to your computer and use it in GitHub Desktop.
letsencrypt certbot-auto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vim `/etc/nginx/sites-available/default` | |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server ipv6only=on; | |
root /usr/share/nginx/html; | |
index index.html index.htm; | |
server_name erlang.us; | |
location / { | |
try_files $uri $uri/ =404; | |
} | |
} | |
server { | |
listen 80; | |
server_name wx.roccoliu.com; | |
root /usr/share/nginx/html; | |
index index.html index.htm; | |
location / { | |
try_files $uri $uri/ =404; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
git clone git@github.com:certbot/certbot.git