The moose likes JBoss and the fly likes Multiple IP Configuration to one web server (tomcat) in JBoss AS 4.0.5ga Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "Multiple IP Configuration to one web server (tomcat) in JBoss AS 4.0.5ga" Watch "Multiple IP Configuration to one web server (tomcat) in JBoss AS 4.0.5ga" New topic
Author

Multiple IP Configuration to one web server (tomcat) in JBoss AS 4.0.5ga

aida haslinda
Ranch Hand

Joined: Jun 10, 2010
Posts: 36
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?


thanks
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5543

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?


JBoss In Action
aida haslinda
Ranch Hand

Joined: Jun 10, 2010
Posts: 36
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

i place these codes in the httpd.conf

NameVirtualHost 192.168.2.107:80

<VirtualHost 192.168.2.107:80>
ServerAdmin saujana2208@gmail.com
ServerName site1.org
DocumentRoot "C:\Web\site1"

</VirtualHost>

<VirtualHost 192.168.2.107:80>
ServerAdmin frend@gmail.com
ServerName site2.org
DocumentRoot "C:\Web\site2"

</VirtualHost>

but the 192.168.2.107 couldn't access the site
can you help me with this

please ignore about the php question

thanks

aida haslinda
Ranch Hand

Joined: Jun 10, 2010
Posts: 36
on windows
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multiple IP Configuration to one web server (tomcat) in JBoss AS 4.0.5ga
 
Similar Threads
JSPs don't see EJBs
Install both JBoss 4.0.1sp1 and 4.0.5GA on the same server?
jboss ans web services
Couldn't start JBoss AS as Windows service
JSF drop down change using javascript and ajax