| Author |
ip based virtual hosting problem
|
aida haslinda
Ranch Hand
Joined: Jun 10, 2010
Posts: 36
|
|
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
Joined: Jul 20, 2005
Posts: 8208
|
|
I'm not really sure what the question is. Can you please elaborate?
|
[My Blog] [JavaRanch Journal]
|
 |
aida haslinda
Ranch Hand
Joined: Jun 10, 2010
Posts: 36
|
|
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
Joined: Jun 10, 2010
Posts: 36
|
|
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
|
 |
 |
|
|
subject: ip based virtual hosting problem
|
|
|