Worklight Console redirects to port 9080

此生再无相见时 提交于 2019-12-08 03:20:13

问题


I am using Websphere Liberty 8.5.5 with IBM HTTP Server 8.5.5 and Worklight Server 6.0.0.1.

I have configured IHS to redirect port 80 to Websphere port 9080.

The redirection works properly for the front page, and entering domain.com/worklight/console directly opens domain.com:9080/worklight/console page. However, when I provide the credentials and click Login, the address bar changes to domain.com:9080/worklight/console page which should not happen as port 9080 is blocked over the firewall.

I have applied the solutions given in this question "Mixed Port Numbers" but still the problem persists.

If I manually remove 9080 from the address bar and press enter, the page opens fine, is it possible that the port 9080 has been hard coded somewhere in the Authentication Console, if yes, where should I make that change?

I used WebSphere Plugin to internally forward the requests on port 80 to WebSphere port 9080.

worklight.properties

publicWorkLightHostname=subdomain.domain.com
publicWorkLightProtocol=http
publicWorkLightPort= 

Plugin-Cfg.xml

<VirtualHostGroup Name="default_host">  <VirtualHost Name=":9080"/> 
<VirtualHost Name=":80"/>  <VirtualHost Name="*:9443"/> 
</VirtualHostGroup>  <Transport Protocol="http" Port="9080"
Hostname="11.11.11.11"/> <Transport Protocol="https" Port="9443"
Hostname="11.11.11.11">

Appreciate any ideas!


回答1:


You need edit the server.xml (if you're using Liberty) to modify 2 elements:

jndiName="worklight/publicWorkLightProtocol" 

and

jndiName="worklight/publicWorkLightPort"   

to make their values same as what defined in worklight properties.




回答2:


I'm looking at the infocenter, and it looks like Transport is supposed to be wrapped in ServerCluster -> Server.

How did you generate your plugin-cfg.xml?



来源:https://stackoverflow.com/questions/20042209/worklight-console-redirects-to-port-9080

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!