nginx - Nginx 重写规则仅适用于第一个请求
问题描述
我有一个需要 nginx 重写规则的要求,这样当我启动 URL - http://localhost:8554/web-app 时,路径应该更改为 http://localhost:8554/web-app /login.jsp
但是,此重定向仅在我键入 http://localhost:8554/web-app/ 或 http://localhost:8554/web-app 时才会发生,而不是在登录后的后续请求中发生。该 url 包含登录后的 /web-app uri,因此用户登录后不应发生重定向。
任何帮助表示赞赏。
解决方案
推荐阅读
- php - 在 Doctrine Query builder Query 中调用自定义 MySql 函数
- sharepoint - 使用图形 api 创建站点
- javapos - ACE 的 IBM 4690 SI AEF 扩展
- node.js - Router.use() 需要一个中间件函数,但使用 nodeJS 在 backend-server.js 中获得了一个对象
- kubernetes - 如何在 Pod 中查看应用程序日志
- dart - 颤振 - 具有透明背景的小部件
- java - 如何用 Lamda 表达式替换匿名 OnClickListener?
- gulp - 在 gulp 版本 4 中结合两个任务
- python - 有没有办法找到 DAG 中任何随机任务所花费的时间?
- angular - Angular 4:如何使用远程保存的 node_module 文件夹?