From 178ad8a7839a873cb7401c9c3e6169279a96c0e5 Mon Sep 17 00:00:00 2001 From: Catalin Constantin Mititiuc Date: Mon, 16 Jun 2025 20:18:05 -0700 Subject: [PATCH] Add default mime type in nginx.conf --- conf/nginx.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index 0ae557a..1496207 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -11,13 +11,16 @@ http { include mime.types; charset utf-8; + default_type text/html; try_files $uri $uri/ $uri.html =404; + # return `/posts/index.html` from `/posts` location = /posts { rewrite ^ /posts/ break; } + # redirect requests ending in a forward slash location ~ ^/(.+)/$ { return 302 /$1; }