Resolve CSS Cheat Sheet and CSS style directory conflict

This commit is contained in:
fechin committed 2023-03-18 10:24:46 +08:00
1 parent c1a3ef220f
commit 4011c244ad
1 file changed
+5
+5
View File
@@ -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;
}