Showing posts with label Port. Show all posts
Showing posts with label Port. Show all posts

Thursday, May 28, 2015

Working with WSO2 ES with port offset and custom Hostname

In this tutorial, I am going to start an WSO2 Enterprise Store in a port offset with a custom hostname

port offset = 10
hostname  = www.wso2.org.es
     then https URLs will be served in 1953 and http URLs will be served in 1973
     URL contexts will be https://www.wso2.org.es:9453 and http://www.wso2.org.es:9773
  • Download  wso2es-2.0.0-SNAPSHOT.zip and unzip it to a preferred locations. Let’s say ES_HOME
  • Make below changes in  ES_HOME/repository/conf/carbon.xml file

<Offset>10</Offset>
<HostName>www.wso2.org.es</HostName>
<MgtHostName>www.wso2.org.es</MgtHostName>

  • In [ES_HOME]/repository/conf/security/sso-idp-config.xml file change AssertionConsumerService urls of SSOIdentityProviderConfig as following.

    <SSOIdentityProviderConfig>
    <TenantRegistrationPage>https://stratos-local.wso2.com/carbon/tenant-register/select_domain.jsp</TenantRegistrationPage>
    <ServiceProviders>
        <ServiceProvider>
            <Issuer>store</Issuer>  
    <AssertionConsumerService>https://www.wso2.org.es:9453/store/acs</AssertionConsumerService>
            <SignResponse>true</SignResponse>
            <CustomLoginPage>/store/login.jag</CustomLoginPage>
        </ServiceProvider>
        <ServiceProvider>
            <Issuer>social</Issuer>       
    <AssertionConsumerService>https://www.wso2.org.es:9453/social/acs</AssertionConsumerService>
            <SignResponse>true</SignResponse>
            <CustomLoginPage>/social/login</CustomLoginPage>
        </ServiceProvider>
        <ServiceProvider>
            <Issuer>publisher</Issuer>     
    <AssertionConsumerService>https://www.wso2.org.es:9453/publisher/acs</AssertionConsumerService>
            <SignResponse>true</SignResponse>        
    <CustomLoginPage>https://www.wso2.org.es:9453/publisher/controllers/login.jag</CustomLoginPage>
        </ServiceProvider>
    </ServiceProviders>
    </SSOIdentityProviderConfig>

  • In ES_HOME/repository/conf/identity.xml file change “IdentityProviderURL” under “SSOService” as below.

  • <IdentityProviderURL>https://www.wso2.org.es:9453/samlsso</IdentityProviderURL>

    • Do the following configurations under “ssoConfiguration” in files <ES_HOME>/repository/deployment/server/jaggeryapps/store/config/store.json and store-tenant.json.
    "identityProviderURL": "https://www.wso2.org.es:9453/samlsso"
    • Repeat above step with files <ES_HOME>/repository/deployment/server/jaggeryapps/publisher/config/publisher.json and publisher-tenant.json.
    • In a command-line goto <ES_HOME>/bin and start the ES server by executing below commands based on the OS.
    Linux execute : wso2server.sh
    windows execute: wso2server.bat


    Read More
    Designed ByBlogger Templates