tweak: add simpler nginx config example
This commit is contained in:
parent
dd39692b19
commit
066678f53b
|
@ -1,14 +1,8 @@
|
||||||
# Old config:
|
# Old config:
|
||||||
server {
|
server {
|
||||||
|
|
||||||
|
listen 80;
|
||||||
listen 443 ssl; # managed by Certbot
|
listen [::]:80;
|
||||||
ssl_certificate /etc/letsencrypt/live/nunosempere.com/fullchain.pem; # managed by Certbot
|
|
||||||
ssl_certificate_key /etc/letsencrypt/live/nunosempere.com/privkey.pem; # managed by Certbot
|
|
||||||
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
|
||||||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
|
||||||
# listen 80;
|
|
||||||
# listen [::]:80;
|
|
||||||
|
|
||||||
root /home/www/werc/werc-1.5.0/sites/nunosempere.com;
|
root /home/www/werc/werc-1.5.0/sites/nunosempere.com;
|
||||||
index index.html index.htm index.nginx-debian.html;
|
index index.html index.htm index.nginx-debian.html;
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
# Old config:
|
||||||
|
server {
|
||||||
|
|
||||||
|
|
||||||
|
listen 443 ssl; # managed by Certbot
|
||||||
|
ssl_certificate /etc/letsencrypt/live/nunosempere.com/fullchain.pem; # managed by Certbot
|
||||||
|
ssl_certificate_key /etc/letsencrypt/live/nunosempere.com/privkey.pem; # managed by Certbot
|
||||||
|
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
||||||
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
||||||
|
# listen 80;
|
||||||
|
# listen [::]:80;
|
||||||
|
|
||||||
|
root /home/www/werc/werc-1.5.0/sites/nunosempere.com;
|
||||||
|
index index.html index.htm index.nginx-debian.html;
|
||||||
|
server_name nunosempere.com;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
try_files $uri $uri/ =404;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user