From 52826f65b4e3184a891ecc2906b6a1c44ffd565f Mon Sep 17 00:00:00 2001 From: Kameron Kenny - pi501 Date: Mon, 20 May 2024 18:16:10 -0400 Subject: [PATCH] fix nginx server config --- app/conf/nginx/nginx.conf | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/app/conf/nginx/nginx.conf b/app/conf/nginx/nginx.conf index 3992b96..b1c0f30 100644 --- a/app/conf/nginx/nginx.conf +++ b/app/conf/nginx/nginx.conf @@ -27,22 +27,22 @@ http { default_type application/octet-stream; access_log /var/log/nginx/access.log; gzip off; + + server { + listen 4000 default_server; + # listen [::]:80 default_server; + + root /usr/local/jekyll/sites/kameronkenny.com/_site; + + index index.html index.htm index.nginx-debian.html; + + server_name _; + + location / { + # First attempt to serve request as file, then + # as directory, then fall back to displaying a 404. + try_files $uri $uri/ =404; + } + } + } - -server { - listen 4000 default_server; - # listen [::]:80 default_server; - - root /usr/local/jekyll/sites/kameronkenny.com/_site; - - index index.html index.htm index.nginx-debian.html; - - server_name _; - - location / { - # First attempt to serve request as file, then - # as directory, then fall back to displaying a 404. - try_files $uri $uri/ =404; - } -} -