Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
on windows
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic