• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ip based virtual hosting problem

 
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,
i tried to configure ip based virtual host in jboss 4.0.5ga

now a.a.a.a can calls web app hello.war and b.b.b.b can calls web app sample.war
the this is why a.a.a.a still can calls web app sample.war?

sample.war jboss-web.xml


hello.war jboss-web.xml


server.xml


i really appreciate if anyone could help me out
Thanks
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not really sure what the question is. Can you please elaborate?
 
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
hi jaikiran,
i'm new to jboss and certain term that i used maybe wrong, please correct me.
i'm running jboss as 4.0.5ga on win xp

what i was try to do was to create ip based virtual host:

if user request http://192.168.1.22:8180/hello they can redirect to web application hello.war
if user request http://192.168.1.33:8280/sample they can redirect to web application sample.war

i referred to these site

https://community.jboss.org/wiki/ConfiguringMultipleJBossInstancesOnOneMachine
http://9mmedia.com/blog/?p=58

and
when i use run -b 192.168.1.22:8180, i can successfully accessed the hello application
when i use run -b 192.168.1.33:8280, i can successfully accessed the sample application
(another thing i want to do is 192.168.1.22 couldn't accessed the sample app and vice versa )


but my questions are:

if i bind each ip add to each jboss instance,is this means 127.0.0.1 couldn't be used right?

i try to used run -b 0.0.0.0, in order to run jboss at 127.0.0.1..it turns out all ip address can access hello and sample app at port 8180.
2) why not run at port 8080?


thank you very much
really appreciate your help
 
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
can we create multiple application in single jboss?

both sample and war file in one jboss.
if user request 192.168.1.22 should direct to web app hello
if user request 192.168.1.33 should direct to web app sample

if not why, i still figure out why

does anyone knows?

thanks
 
reply
    Bookmark Topic Watch Topic
  • New Topic