Last active
May 25, 2017 18:59
-
-
Save lashae/fc681b9f083a77aa40d8d80a90652ebf to your computer and use it in GitHub Desktop.
Nginx LetsEncrypt Configuration
This file contains hidden or 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
server { | |
listen 0.0.0.0:80; | |
listen [::]:80; | |
server_name alanadi-1.com alanadi-2.com alanadi-3.com; | |
server_tokens off; | |
access_log /var/log/nginx/le_access.log; | |
error_log /var/log/nginx/le_error.log; | |
location /.well-known/ { | |
alias /var/www/letsencrypt/.well-known/; | |
} | |
location / { | |
return 301 https://$http_host:$request_uri; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment