fixed routing behaviour
This commit is contained in:
@@ -3,6 +3,9 @@ events {
|
|||||||
}
|
}
|
||||||
|
|
||||||
http {
|
http {
|
||||||
|
include /etc/nginx/mime.types;
|
||||||
|
default_type application/octet-stream;
|
||||||
|
|
||||||
server_tokens off;
|
server_tokens off;
|
||||||
charset utf-8;
|
charset utf-8;
|
||||||
|
|
||||||
@@ -23,12 +26,22 @@ http {
|
|||||||
|
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 443 ssl http2;
|
listen 443 ssl;
|
||||||
|
http2 on;
|
||||||
|
|
||||||
|
root /etc/nginx/html;
|
||||||
|
index index.html;
|
||||||
|
|
||||||
ssl_certificate /etc/letsencrypt/live/adam-french.co.uk/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/adam-french.co.uk/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/adam-french.co.uk/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/adam-french.co.uk/privkey.pem;
|
||||||
|
|
||||||
server_name adam-french.co.uk;
|
server_name adam-french.co.uk;
|
||||||
|
|
||||||
|
# Serve your HTML site
|
||||||
|
location / {
|
||||||
|
try_files $uri $uri/ =404;
|
||||||
|
}
|
||||||
|
|
||||||
location ~ /.well-known/acme-challenge/ {
|
location ~ /.well-known/acme-challenge/ {
|
||||||
root /var/www/certbot;
|
root /var/www/certbot;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user