如何为JBoss实例设置代理 [英] How to set a proxy for a JBoss Instance

查看:173
本文介绍了如何为JBoss实例设置代理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个JBoss实例正在运行,我想通过代理路由所有流量。

I have a JBoss instance running and I would like to route all traffic through a proxy.

我已经尝试将系统属性设置为在run.sh中加载所以:

I have tried setting the System Properties to load in run.sh as so:

JAVA_OPTS = - Dhttp.proxyHost = localhost -Dhttp.proxyPort = 1234 $ JAVA_OPTS

但似乎JBoss忽略了这些因为我仍然无法通过代理路由。

But it seems JBoss ignores these as I still am not able to route through the proxy.

任何帮助?

推荐答案

在<$ p $ c> standalone.xml 之后

</extensions>

添加以下内容

<system-properties>
    <property name="http.proxyHost" value="yourProxyIpAddress"/>
    <property name="http.proxyPort" value="yourProxyPort"/>
    <property name="http.nonProxyHosts" value="localhost"/> <!-- if you want to ignore localhost -->
</system-properties>

这篇关于如何为JBoss实例设置代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆