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?
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
192.168.2.107 point to the hello1.war in the C:\jboss-4.0.5\jboss-4.0.5.GA\server\default\deploy
184.108.40.206 point to the hello2.war in the C:\jboss-4.0.5\jboss-4.0.5.GA\server\default\deploy