user2659694
user2659694

Reputation: 1290

how to config http as default request in WSO2 Identity server

As default Config during WSO IDentity Server (WSO2 IS). we can access to admin by the https request with the port 9443 with the below link:

https://localhost:9443/carbon/

But as mentioned on the below link.we can access through Http request with port 9763. But when we access with the http request, It will redirect automatically to https.

https://docs.wso2.com/display/IS500/Default+Ports+of+WSO2+Products

I also tried to find and see a confit relating to http and https in IS_HOME/responsitory/conf/axis2.xml.

<transportReceiver name="https"
                   class="org.wso2.carbon.core.transports.http.HttpsTransportListener">
    <parameter name="port">9443</parameter>
</transportReceiver>
<transportReceiver name="http"
                   class="org.wso2.carbon.core.transports.http.HttpTransportListener">
    <parameter name="port">9763</parameter>
</transportReceiver>

I tried to comment a config relating to https and build again but the result is not good when I had exception here.

I want to ask how to config in WSO2 IS to use HTTP as default to access instead of HTTPS as the initial config.

I would be happy if y can support me in this case. Thanks.

Upvotes: 0

Views: 1544

Answers (2)

sathya
sathya

Reputation: 553

In recent versions of WSO2 IS, follow the below steps to enable HTTP access to management console.

Go to the $IS_HOME/repository/conf and open carbon.xml, and uncomment

<EnableHTTPAdminConsole>true</EnableHTTPAdminConsole> 

Disable secure cookie parameter in $IS_HOME/repository/conf/tomcat/carbon/WEB-INF/web.xml file.

<session-config> 
 <cookie-config> 
  <secure>false</secure> 
 </cookie-config> 
</session-config>

Upvotes: 2

ycr
ycr

Reputation: 14604

To enable HTTP access to management console Open carbon.xml located at WSO2_HOME/repository/conf directory and uncomment the following line.

<EnableHTTPAdminConsole>true</EnableHTTPAdminConsole>

Now you should be able to login. See the following.enter image description here

Upvotes: 1

Related Questions