[JBoss] 解決不能透過remote host 進入問題

當JBoss初次利用standalone mode 進行部署時, 其他的電腦有機會不能進入網頁. 這是因為JBoss 預先進行了harden 設定, 避了不必要的保安漏洞.而解決方法, 則只須修改 %JBOSS_HOME%/standalone/configuration/standalone.xml 便可. 內容如下.

standalone.xml

<interfaces>
        <interface name="management">
            <inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
        </interface>
        <interface name="public">
            <!--<inet-address value="${jboss.bind.address:127.0.0.1}"/>-->
            <any-address />
        </interface>
    </interfaces>

在此會將public interface 設定為所有IP address. 如果須要限制某subnet 的話, 則設定如下:

<inet-address value="${jboss.bind.address:192.168.0.0}"/>

 

About C.H. Ling 260 Articles
a .net / Java developer from Hong Kong and currently located in United Kingdom. Thanks for Google because it solve many technical problems so I build this blog as return. Besides coding and trying advance technology, hiking and traveling is other favorite to me, so I will write down something what I see and what I feel during it. Happy reading!!!

Be the first to comment

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.