WildFly : Konfigurasi standalone.xml agar Web bisa diakses publik

Oleh : Reza Ervani

بسم الله الرحمن الرحيم

Agar server wildfly kita bisa diakses publik kita perlu merubah sedikit konfigurasi di file /standalone/configuration/standalone.xml :

[code language=”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}"/>
</interface>
<!– TODO – only show this if the jacorb subsystem is added –>
<interface name="unsecure">
<!–
~ Used for IIOP sockets in the standard configuration.
~ To secure JacORB you need to setup SSL
–>
<inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>
</interface>
</interfaces>

[/code]

Rubah menjadi 0.0.0.0 jika kita ingin wildfly bisa diakses dari mana saja, atau ganti dengan IP yang kita inginkan bisa mengakses. Contohnya seperti berikut :

[code language=”xml”]

<interfaces>
<interface name="management">
<inet-address value="${jboss.bind.address.management:0.0.0.0}"/>
</interface>
<interface name="public">
<inet-address value="${jboss.bind.address:0.0.0.0}"/>
</interface>
<!– TODO – only show this if the jacorb subsystem is added –>
<interface name="unsecure">
<!–
~ Used for IIOP sockets in the standard configuration.
~ To secure JacORB you need to setup SSL
–>
<inet-address value="${jboss.bind.address.unsecure:0.0.0.0}"/>
</interface>
</interfaces>

[/code]

Kini wildfly kita bisa diakses dari mana saja, termasuk via nama domain seperti tampak pada gambar berikut ini :

screenshot 2014-08-05 12:52:35

Catatan : Jika kita menjalankan wildfly di port 8080, seringkali kita perlu mengizinkan terlebih dahulu port tersebut di iptables dan selinux

About Reza Ervani 425 Articles
Adalah pendiri programming.rezaervani.com -

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.