How can I use server hostname instead of localhost with JBoss?

I am installing JBoss 4.2.2 GA on a local server. I can access the JBoss application server by going to http: // localhost: 8080 . However, I would like to use the host name instead of localhost so that other computers on the same network can also use the server. When I try http: // hostname: 8080 or even http://192.168.1.100:8080 , I get a "Page not found" error.

Is there some kind of setup that I'm missing to enable the use of a hostname or even an ip address? I appreciate any help.

+3
source share
3 answers

By default, JBoss only binds to localhost. This is the default value.

The easiest way to change this is to run JBoss with the -b flag, indicating which address to bind to, for example

run.bat -b 192.168.1.100

(or using any running script you are using)

+11
source

It seems that the JBoss server is bound only to the local interface. I am not JBoss whistling, but I assume that there is a configuration setting (next to where you set the port to 8080) that says it binds to the IP address 127.0.0.1. Try changing this to 0.0.0.0 to bind to all interfaces on the machine or to 192.168.1.100, so that you bind only to the network interface (and not to the local host).

0
source

Apache http://localhost:8080 http://hostname:80

Windows http.conf

LoadModule proxy_module modules/mod_proxy.so

(...)

ProxyPass /jmx/ http://localhost:8080/jmx-console/
ProxyPassReverse /jmx/ http://localhost:8080/jmx-console/
-2
source

Source: https://habr.com/ru/post/1711083/


All Articles