wildfly-8 - 在 Wildfly 中配置standalone.xml 以将根(/)重定向到子目录
解决方案
在较新版本的 Wildfly 中,我们可以在 undertow 中使用 rewrite:
<filter-ref name="root-redirect" predicate='regex(pattern="^/$", value="%U", full-match=true)' />
<rewrite name="root-redirect" redirect="true" target="/xxx" />
推荐阅读
- python - 我想让python为我按住一个键
- javascript - 使用 Jest 和 React 测试库测试 `img.onLoad`/`img.onError`
- javascript - 谷歌表格中特定表格的时间戳
- python - 索引数组中重复条目的 Numpy 总和
- python - 尝试请求页面时读取超时
- node.js - 我需要帮助尝试通过节点服务器的身份验证调用 3rd 方 api
- python - Python 登录到需要 MFA 令牌的网站
- java - 如何按从小到大的顺序对带有整数和字母的字符串进行排序?(爪哇)
- c# - Mailkit asp.net 核心。如何使用密码,使其未显示在我的代码中
- c - 带有动态数组的 C 程序中的分段错误(核心转储)错误