Skip to content

Instantly share code, notes, and snippets.

@tudou-wp
tudou-wp / lnmp-ssl-vhost.conf
Last active Nov 5, 2018
lnmp-ssl-vhost.conf
View lnmp-ssl-vhost.conf
server {
listen 80;
server_name example.suffix www.example.suffix;
location ^~ /.well-known/acme-challenge/ {
alias /home/wwwroot/www.example.suffix/.well-known/acme-challenge/;
try_files $uri = 404;
}
location / {
@tudou-wp
tudou-wp / lnmp-letsencrypt.conf
Last active Nov 5, 2018
lnmp-letsencrypt.conf
View lnmp-letsencrypt.conf
# only modify the values, key files will be generated automaticly.
ACCOUNT_KEY="example-account.key"
DOMAIN_KEY="example.suffix.key"
DOMAIN_DIR="/home/wwwroot/example.suffix"
DOMAINS="DNS:example.suffix,DNS:www.example.suffix"
#ECC=TRUE
#LIGHTTPD=TRUE
View www.lnmp-letsencrypt.conf
# only modify the values, key files will be generated automaticly.
ACCOUNT_KEY="example-account.key"
DOMAIN_KEY="example.suffix.key"
DOMAIN_DIR="/home/wwwroot/www.example.suffix"
DOMAINS="DNS:example.suffix,DNS:www.example.suffix"
#ECC=TRUE
#LIGHTTPD=TRUE
You can’t perform that action at this time.