Created
December 25, 2019 14:51
-
-
Save ThePendulum/bd7d3a730190bae9b797158c0233ca89 to your computer and use it in GitHub Desktop.
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; | |
server_name www.simenonamps.com simenonamps.com; | |
return 301 https://$host$request_uri; | |
} | |
server { | |
listen 443 ssl; | |
server_name simenonamps.com www.simenonamps.com; | |
root /home/niels/amps; | |
index index.html index.php; | |
include /etc/nginx/snippets/root.conf; | |
include /etc/nginx/snippets/enable_php.conf; | |
ssl_certificate /etc/letsencrypt/live/simenonamps.com/fullchain.pem; | |
ssl_certificate_key /etc/letsencrypt/live/simenonamps.com/privkey.pem; | |
include /etc/letsencrypt/options-ssl-nginx.conf; | |
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment