tomcat – 你能改变WSO2根目录重定向吗?

我想更改新WSO2服务器的默认重定向,这样如果您转到通用login.domain.com,它会将您重定向到特定的URL而不是当前默认的login.domain.com/碳/管理/ login.jsp的

这是http_access.log文件中的内容

172.16.1.22 – – [10/Mar/2017:11:31:52 -0600] “GET / HTTP/1.1” 302 – “-” “Mozilla/5.0 (X11; Linux i686; rv:54.0) Gecko/20100101 Firefox/54.0″

172.16.1.22 – – [10/Mar/2017:11:31:52 -0600] “GET /carbon HTTP/1.1” 302 – “-” “Mozilla/5.0 (X11; Linux i686; rv:54.0) Gecko/20100101 Firefox/54.0”

172.16.1.22 – – [10/Mar/2017:11:31:52 -0600] “GET /carbon/admin/index.jsp HTTP/1.1” 302 – “-” “Mozilla/5.0 (X11; Linux i686; rv:54.0) Gecko/20100101 Firefox/54.0”

172.16.1.22 – – [10/Mar/2017:11:31:52 -0600] “GET /carbon/admin/login.jsp HTTP/1.1” 200 15300 “-” “Mozilla/5.0 (X11; Linux i686; rv:54.0) Gecko/20100101 Firefox/54.0”

我一直在谷歌搜索这个,但到目前为止还没有弄清楚需要改变什么.

有没有人试图做这样的事情,或者有什么指示我可以看?

非常感谢!

最佳答案 在wso2 IS 5.1上,在文件存储库/ conf / carbon.xml中:

<!--
The URL of the index page. This is where the user will be redirected after signing in to the carbon server.
-->
<!-- IndexPageURL>/carbon/admin/index.jsp</IndexPageURL-->

当我取消注释并更改该行然后重新启动服务时,IS根重定向到我指定的URL.注意:这也影响了碳注销重定向页面.

我检查了IS 5.3,设置仍在那里. AM 2.1也有此设置.

点赞