Fixing nginx conf to return 404 on things it cant find rather than index.html

This commit is contained in:
shockrah 2023-02-14 18:53:11 -08:00
parent 321734a453
commit 91bb927cf5

View File

@ -35,11 +35,12 @@ http {
server { server {
server_name "shockrah.xyz"; server_name "shockrah.xyz";
root /var/www/shockrah.xyz; root /var/www/shockrah.xyz;
index index.html; index index.html;
location / { location / {
try_files $uri $uri/ /index.html; try_files $uri $uri/ =404;
} }
} }
server { server {