Last active
May 26, 2018 06:37
-
-
Save danielpotthast/23f46ef564d7ca99cf7aabb74e264055 to your computer and use it in GitHub Desktop.
NGINX – HTTP-Konfiguration
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
server { | |
listen 80; | |
listen [::]:80; | |
server_name sitename.tld; | |
location ^~ /.well-known/acme-challenge/ { | |
alias /var/www/letsencrypt/.well-known/acme-challenge/; | |
} | |
location / { | |
rewrite ^ https://www.sitename.tld$request_uri? permanent; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment