weblogic & OHS - 如何使我的应用程序通过公共外部端口可用
weblogic & OHS - how to make my application available via the common external port
我有一个部署在 weblogic 服务器 (12c) 上的应用程序。
Th 应用程序有一个 angular JS 和一个 Rest 端点部分。
使用内部端口和 url,应用程序部分工作正常(都是单耳部署的一部分)。
http://example.org:23777/MyApp-gui/index.html
http://example.org:23777/MyApp-rest/endpoint-1?para1=var1
我现在对 OHS 的尝试是让它通过一个根路径访问 + 从外部访问,因为它只允许转发端口 8080。
对于使用 OHS 中的条目(正在侦听 8080)的其他应用程序,配置如下:
<Location /MyApp>
SetHandler weblogic-handler
WLLogFile /opt/MyApp/MyApp.log
Debug OFF
WebLogicHost 127.0.0.1
WebLogicPort 23777
WLSocketTimeoutSecs 60
</Location>
但我仍然无法通过我期望的 URL 访问我的应用程序:
http://example.org:8080/MyApp/MyApp-gui/index.html
我还需要处理其他配置吗?
一个选项是在 apache 配置中为两者(rest 和 gui)使用一个单独的位置部分:
<Location /MyApp-rest>
SetHandler weblogic-handler
WLLogFile /opt/MyApp/MyApp-rest.log
Debug OFF
WebLogicHost 127.0.0.1
WebLogicPort 23777
WLSocketTimeoutSecs 60
</Location>
<Location /MyApp-gui>
SetHandler weblogic-handler
WLLogFile /opt/MyApp/MyApp-gui.log
Debug OFF
WebLogicHost 127.0.0.1
WebLogicPort 23777
WLSocketTimeoutSecs 60
</Location>
所以它们应该可以通过外部地址获得:
http://example.org:8080/MyApp-gui/index.html
http://example.org:8080/MyApp-rest/endpoint-1?para1=var1
我有一个部署在 weblogic 服务器 (12c) 上的应用程序。
Th 应用程序有一个 angular JS 和一个 Rest 端点部分。
使用内部端口和 url,应用程序部分工作正常(都是单耳部署的一部分)。
http://example.org:23777/MyApp-gui/index.html
http://example.org:23777/MyApp-rest/endpoint-1?para1=var1
我现在对 OHS 的尝试是让它通过一个根路径访问 + 从外部访问,因为它只允许转发端口 8080。
对于使用 OHS 中的条目(正在侦听 8080)的其他应用程序,配置如下:
<Location /MyApp>
SetHandler weblogic-handler
WLLogFile /opt/MyApp/MyApp.log
Debug OFF
WebLogicHost 127.0.0.1
WebLogicPort 23777
WLSocketTimeoutSecs 60
</Location>
但我仍然无法通过我期望的 URL 访问我的应用程序:
http://example.org:8080/MyApp/MyApp-gui/index.html
我还需要处理其他配置吗?
一个选项是在 apache 配置中为两者(rest 和 gui)使用一个单独的位置部分:
<Location /MyApp-rest>
SetHandler weblogic-handler
WLLogFile /opt/MyApp/MyApp-rest.log
Debug OFF
WebLogicHost 127.0.0.1
WebLogicPort 23777
WLSocketTimeoutSecs 60
</Location>
<Location /MyApp-gui>
SetHandler weblogic-handler
WLLogFile /opt/MyApp/MyApp-gui.log
Debug OFF
WebLogicHost 127.0.0.1
WebLogicPort 23777
WLSocketTimeoutSecs 60
</Location>
所以它们应该可以通过外部地址获得:
http://example.org:8080/MyApp-gui/index.html
http://example.org:8080/MyApp-rest/endpoint-1?para1=var1