File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ip based virtual hosting problem

 
aida haslinda
Ranch Hand
Posts: 36
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not really sure what the question is. Can you please elaborate?
 
aida haslinda
Ranch Hand
Posts: 36
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic