58.7 Configuring JBoss Server to Access a Host Name (not localhost)

Configuring JBoss Server to Access a Host Name is optional and required only to access the JBoss Server using the host name (rather than localhost/127.0.0.1).

  1. On the JBoss Server host, locate the server.xml file in the following path:
    JBoss_install_dir\server\default\deploy\jbossweb.sar\server.xml 
    
  2. Edit server.xml to change the default host, as follows:

    From:

    <Engine name="jboss.web" defaultHost="localhost">
    

    To:

    <Engine name="jboss.web" defaultHost="defaultHost="0.0.0.0">
    
  3. Save server.xml.

Note:

Starting JBoss Server using -b 0.0.0.0 allows the user to access the server using host name rather than localhost / 127.0.0.1. Otherwise, JBoss Server can be accessed using localhost / 127.0.0.1 as well as host name.