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; - } -} -