问题描述
我对wso2应用服务器感到困惑.当我访问一个不存在的页面时,它将始终重定向到carbon控制台,我已经研究了xml配置文件,但是没有任何运气.我只是想知道如何让它仅在发生404错误时报告?
I am being confused by wso2 aplication server. When i access a non-exist page, it will always redirect to carbon console, I have studied the xml config files, but find no luck.I just want to know how to make it just report 404 error when it does happen?
推荐答案
我找到了答案,原因是carbon应用程序占用了上下文根,因此对不存在的上下文根的所有请求都将由carbon app接收.在carbon.xml中更改了carbon WebContextRoot之后,现在一切似乎都可以了.
I have found the answer, the reason is the carbon app occupied the context root, so all request to non exist context-roots will be received by carbon app. After changing the carbon WebContextRoot in carbon.xml, all seems ok now.
这篇关于WSO2应用服务器将重定向到"/carbon"目录.出现404错误时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!