WebLogic网站通过NGROK代理开放外网访问
Weblogic网站需要修改的配置
有一台阿里云服务器,在上面搭建了Ngrok代理服务,内网服务器上的应用可以通过端口的转发提供外网服务。Ngrok服务如何搭建网上有很多介绍可以参考,这里就不多说了。
之前代理的各种服务,包括远程终端,Tomcat,数据库这些都完全没有问题,但是最近内网建立的一套WebLogic网站却遇到了问题,将它的端口代理出去后,通过外网地址完全访问不了。
检查配置后发现有以下地方需要修改:
- E:\demo\ohs\config\fmwconfig\components\OHS\demo目录下的httpd.conf
#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
# Listen 12.34.56.78:80
# The Listen directive below has a comment preceding it that is used
# by tooling which updates the configuration. Do not delete the comment.
#[Listen] OHS_LISTEN_PORT
Listen demo1:8080
这里默认的是机器名:端口号,把它改为 *: