Skip to content

Instantly share code, notes, and snippets.

@ThePendulum
Created December 25, 2019 14:51
Show Gist options
  • Save ThePendulum/bd7d3a730190bae9b797158c0233ca89 to your computer and use it in GitHub Desktop.
Save ThePendulum/bd7d3a730190bae9b797158c0233ca89 to your computer and use it in GitHub Desktop.
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