徐晓伟的论坛
GitLab Pages 使用 Nginx try_files
GitLab
GitLab Pages
pages
xuxiaowei
January 16, 2026, 2:23pm
1
文档
redirects - GitLab - GitLab 文档中心
使用
在
public
文件夹中新建
_redirects
文件,内容为:
等价于
try_files $uri $uri/ /index.html;
/* /index.html 200