From 4011c244ad8c1795af01d0fa1277ddfd29fdb054 Mon Sep 17 00:00:00 2001 From: fechin Date: Sat, 18 Mar 2023 10:24:46 +0800 Subject: [PATCH] Resolve CSS Cheat Sheet and CSS style directory conflict --- nginx.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nginx.conf b/nginx.conf index 3602521..d4a0661 100644 --- a/nginx.conf +++ b/nginx.conf @@ -35,6 +35,11 @@ http { # Rename cheatsheet rewrite ^/golang$ /go permanent; + # Resolve CSS Cheat Sheet and CSS style directory conflict. + location ^/css$ { + alias css.html; + } + location / { try_files $uri $uri/ @html; }