From 1e0e68e68522c89c7027cf0c07c058d8ee9eb6c1 Mon Sep 17 00:00:00 2001 From: bob Date: Thu, 5 Jan 2023 20:13:55 +0800 Subject: [PATCH] fix(doc) caddy --- _compose/caddy/conf/Caddyfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_compose/caddy/conf/Caddyfile b/_compose/caddy/conf/Caddyfile index c66e889..2df4ee6 100644 --- a/_compose/caddy/conf/Caddyfile +++ b/_compose/caddy/conf/Caddyfile @@ -1,5 +1,7 @@ :8300, localhost { root * /data/dist + # Vue Router history模式,避免刷新后404页面;字符中间不可有空格 + try_files {path} /index.html handle_path /stage-api/* { uri strip_prefix /stage-api