From 91bb927cf52971186a13688b92b7859dbe96b3c4 Mon Sep 17 00:00:00 2001 From: shockrah Date: Tue, 14 Feb 2023 18:53:11 -0800 Subject: [PATCH] Fixing nginx conf to return 404 on things it cant find rather than index.html --- docker/beta/nginx.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/beta/nginx.conf b/docker/beta/nginx.conf index 174f576..606adfc 100644 --- a/docker/beta/nginx.conf +++ b/docker/beta/nginx.conf @@ -35,11 +35,12 @@ http { server { server_name "shockrah.xyz"; + root /var/www/shockrah.xyz; index index.html; location / { - try_files $uri $uri/ /index.html; + try_files $uri $uri/ =404; } } server {