WSO2 API Manager Configuration to change hostnames - wso2

· Changing the hostnames from localhost to IP / Domain is not working. Running the API manager server overrides the configuration files (carbon.xml and api-manager.xml) to previous configuration. How should we change the domain names from localhost to domain or live IPs?
· The configuration is not editable in https://localhost:9443/carbon. Is there any other way to change configuration? Even the configuration is not visible in https://localhost:9443/admin.?
Please help...

I guess you are referring to APIM 3.0.0 which comes with new configuration model. These configs are need to be modified in the deployment.toml file. Please refer https://apim.docs.wso2.com/en/latest/Reference/ConfigCatalog/ for more information.
See details on changing hostname in https://apim.docs.wso2.com/en/latest/InstallAndSetup/DeployingWSO2APIManager/changing-the-hostname/

Related

WSO2 EI: WSDL Not opening in the management console

WSDL 1.1 & WSDL 2.0 are not opening in the management console when I open the WSDL in the management console it shows This site can’t be reached error I don't know why this happening. So please help me to sort this out.
Note: No error throws in both carbon and wire logs
Thanks!
you have misconfiguration problem i think. becouse you have wso2 in AWS and this ip-10-50-11-169... is not a hostname or your ip adress.
Can you check your /etc/hosts on server? maybe you must change fqdn in aws account
or you can check wso2 hostname/ip adress configuration in axis2.xml <parameter name="WSDLEPRPrefix"..
You need to add the following property to your axis2.xml to pick the correct FQDN/Hostname when generating WSDL URLs. So add the Hostname you are using to access the services here or if you are using the same hostname used for management console add the hostname with the correct service port.(8280 or 8343)
<parameter name="WSDLEPRPrefix" locked="false">http://ei.wso2.com:80</parameter>
Refer to instructions here.
Also, make sure the FQDN is resolvable and your security groups are allowing access to relevant ports.

WSO2IS 5.11.0 - Blank screen when accessing to /myaccount or /console web page

I deployed to test the last release of WSO2 5.11.0 in Docker container. I did not change anything in the default configuration except the hostname and callbackURL for the "Console" and "My Account" service providers to match my hostname.
Access to the carbon console is fine. But when I try to reach https://<hostname>/console or https://<hostname>/myaccount, I can fill my login and password, then I have a blank page without anything.
Any idea is welcome. Thank you.
Taking the answer from comments:
If you change the host/port of the server after one fresh pack startup, you have to follow the steps in stackoverflow.com/a/65353673/10055162 manually. On the other hand, if you change the host/port before the fresh IS pack server startup these changes applied automatically.
Out of the steps in stackoverflow.com/a/65353673/10055162,
You should have missed step 5 which causes you to see a blank page.
Navigate to : Resident IDP > Inbound Authentication Configuration > OAuth2/OpenID Connect Configuration and change Identity Provider Entity ID accordingly.
Further, these value changes can't be done via deployment.toml.
I can reproduce the same issue, upon initial startup with what I believe is a correct configuration:
When adding an HTTPS ProxyPort config of 443
[server]
hostname = "identity.myorg.io"
...
[transport.https.properties]
proxyPort = 443
Upon initial startup, the Resident IdP erroneously sets the Identity Provider Entity ID to https://identity.myorg.io:443/oauth2/token.
This means that when accessing -> https://identity.myorg.io/console|myaccount the same issue as described by the OP is encountered.
Manually changing the IDP EID to remove the :443 fixes it. The server should do this automatically for port 443.

Customizing the API Manager URL(s) - Windows

So i'm trying to change the default URL for WSO2 features i.e. Publisher, Carbon, Store from localhost to, lets say, myDomain.com.
I've looked for it in the WSO2 documentation but i keep finding this article over and over again
https://docs.wso2.com/display/AM210/Customize+the+API+Store+and+Gateway+URLs
The problem with this is that it has linux-based (i suppose) commands listed that cannot be applied to windows.
I've also tried to change the host < HostName > and < MGT HostName > tags in the carbon.xml of the WSO2 product but it does not respond and display the page AT ALL! just works with the localhost. thats it
Any ideas or options for the windows end? Thanks
1) Yes, the commands given in the doc are for linux. But what those commands do is installing nginx. So you can ignore those commands, and install nginx in windows.
NGinx configurations given in the doc will be the same for any OS.
2) If you add a hostname to <HostName> and <MGT HostName> tags, you need to have IP to hostname mapping somewhere. I think there is a host file in windows for that.

How do you change the DNS for a website hosted on an Azure Linux server VM?

I have a website running CMSMadeSimple on an Azure Linux VM. The current URL is [website].cloudapp.net/cmsmadesimple, but now that the site is complete I need to change the it to the client's URL [website].com.
I've done this in the past by simply remoting in to the server and changing the DNS records, but since the VM is Linux, I can't just remote it. I've looked around but have yet to find a solution.
What am I missing here?
Just create a CNAME or A record. However, your application server must cooperate by redirecting the request to your new hostname to the existing application. It's likely a VirtualHost is already setup for this but if you get a 404 then you need to "remote" in.
First update the config.php files for the new domain.
Second update your vhost files on your webserver to listen to the new domain.
Final update the DNS (usually it is where you registered the domain -- like godaddy.com, namecheap.com, etc) to point to the IP or alias given to you by Azure.

WSO2 IS 5.0.0 saml authentication always redirects to localhost

I'm playing with travelocity sample application, but I'm having a problem:
when I access the application at 10.0.3.124:8080/travelocity.com I end up at https://localhost:9444/commonauth?SAMLRequest=... even though I configured the "host" parameter in carbon.xml. I've also searched for localhost in authenticators.xml and application-authentication.xml and found IdentityProviderSSOServiceURL that i changed from localhost to machine ip.
I'm on a laptop and my application server and IS istances run on a different machine with the 10.0.3.124 IP.
I successfully access the IS admin console.
Where's the problem?
It seems that I also had to configure the <MgtHostName>10.0.3.124</MgtHostName> in carbon.xml.
Thanks
There is a file named identity.xml in side IS_HOME/repository/conf which carries following configuration.
<SSOService>
<IdentityProviderURL>https://localhost:9443/samlsso</IdentityProviderURL>
Please configuring this with your environment parameters.
Thanks,
Pushpalanka