关于由NGINX配置的历史模式的前端途径拦截路线

发布于 2025-02-08 01:07:41 字数 232 浏览 3 评论 0原文

我的VUE项目配置了历史模式,但是目前我需要配置A/登录以将重写重写为 www.sso。 com 在当前域名中,因为我需要根据不同的域名跳到不同的SSO单登录地址。 现在的问题是,当我访问我的项目并添加 /登录到我的域名时,我无法使用Nginx配置的重写信息,但直接被路由到前端并跳到前端404页。

My vue project is configured with history mode, but at this time I need to configure a / login to do rewrite to www.sso.com in the current domain name, because I need to jump to different sso single sign-on addresses according to different domain names.
The problem now is that when I visit my project and add / login to my domain name, I can't take the rewrite information configured by nginx, but is directly routed to the front end and jumps to the front end 404 page.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文