Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

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

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
aida haslinda
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
on windows
 
I guess I've been abducted by space aliens. So unprofessional. They tried to probe me with this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!