WSO2应用服务器将重定向到"/carbon"目录.出现404错误时 [英] WSO2 Application Server will redirect to "/carbon" upon 404 error is expected

查看:125
本文介绍了WSO2应用服务器将重定向到"/carbon"目录.出现404错误时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对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错误时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆