Can you change the WSO2 root server redirection?

I would like to change the default redirection for our new WSO2 server, so if you go to the shared login.domain.com, it will redirect you to a specific URL instead of the current default login.domain.com/carbon/admin/login.jsp

This is what happens in the http_access.log file

172.16.1.22 - - [10 / March / 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 / March / 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 / March / 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 / March / 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 "

I was looking for this for this, but still could not figure out what needs to be changed.

Has anyone tried to do something like this or have any pointers to where I might look?

Thanks a lot!

+5
source share
1 answer

In wso2 IS 5.1, in the /conf/carbon.xml file repository:

<!-- 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--> 

When I uncommented and changed this line and then restarted the service, the IS root was redirected to the URL I specified. Note. It also affected the logout redirect page.

I checked the IP 5.3 and the setup still exists. AM 2.1 also had this setting.

+1
source

Source: https://habr.com/ru/post/1265433/


All Articles