From c1ef3b99b33fa92782342715c4f034a6cf66e6a1 Mon Sep 17 00:00:00 2001 From: Evangeline Perez <126260575+treexi@users.noreply.github.com> Date: Tue, 30 Apr 2024 15:02:30 +0800 Subject: [PATCH] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f03f64d..3e216db 100644 --- a/README.md +++ b/README.md @@ -159,7 +159,9 @@ server{ try_files $uri $uri/ @router; index index.html; } - + location @router { + rewrite ^.*$ /index.html last; + } location /api/ { #把以api打头的接口转发给后端server proxy_pass http://127.0.0.1:8085; #这里端口修改为后端服务运行的端口 proxy_set_header Host $host;