fix nginx server config

This commit is contained in:
Kameron Kenny - pi501 2024-05-20 18:16:10 -04:00
parent 301dcdddb3
commit 52826f65b4
1 changed files with 18 additions and 18 deletions

View File

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