Multiple IP Configuration to one web server (tomcat) in JBoss AS 4.0.5ga
aida haslinda
Ranch Hand
Joined: Jun 10, 2010
Posts: 36
posted
0
hi,
currently i'm using the old version of JBoss AS 4.0.5ga and i'm trying to configure multiple IP to one web server.
1- using php
2- use war file to test the application
hello.war and sample.war already in the C:\jboss-4.0.5\jboss-4.0.5.GA\server\default\deploy
i need to do configuration inside the JBoss itself and how can i do it?
can anyone advise?
I am not quite sure what you are asking, so forgive me if my answers don't help.
To get multiple IP addresses for the server you must either install multiple network cards or assign multiple IP addresses on a single network card. How you assign multiple IP addresses depends on the OS you are using. Based on your file name, you are running some version of Windows - which one?
Once multiple IP addresses are available on the system, JBoss AS 4.0.5 will automatically bind to all of them (though starting with 4.2.0 you would have to add the "-b 0.0.0.0" option to the run command to bind to all of the IP addresses.)
1 - How does this relate to PHP? Are you wanting to run PHP apps within JBoss AS? Or do you just want to run PHP on the same system as JBoss AS? You can configure either Apache HTTP or IIS to run PHP.
2 - What does "using a WAR to test the application" have to do with this?
thanks peter
it just that i didn't understand with the virtual host and what i need to do now is configure the IP based virtual host
for instance:
192.168.2.107 point to the hello1.war in the C:\jboss-4.0.5\jboss-4.0.5.GA\server\default\deploy
192.134.3.123 point to the hello2.war in the C:\jboss-4.0.5\jboss-4.0.5.GA\server\default\deploy