fixed routing behaviour

This commit is contained in:
2025-11-20 20:39:21 +00:00
parent b589eda20f
commit 6eeee752d3

View File

@@ -3,6 +3,9 @@ events {
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
server_tokens off;
charset utf-8;
@@ -23,12 +26,22 @@ http {
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_key /etc/letsencrypt/live/adam-french.co.uk/privkey.pem;
server_name adam-french.co.uk;
# Serve your HTML site
location / {
try_files $uri $uri/ =404;
}
location ~ /.well-known/acme-challenge/ {
root /var/www/certbot;
}