-
1. Re: Virtual Host using Jetty
erikture Oct 7, 2002 6:43 AM (in response to erikture)Hello again!
I have now managed to get "one" virtual host to work.
I deploy my ears. One is set to answer to www.app1.com and the other to www.app2.com. Both URLs works, ie Jetty responds to them. However both URLs are mapped to the same .ear file.
How do you map one URL to one .ear file?
/Erik -
2. Re: Virtual Host using Jetty
erikture Oct 7, 2002 3:42 PM (in response to erikture)Hello!
Unfortunatly I am only replying to my own questions.
Is it possible to have two virtual hosts defining the same context-root, i e "/"?
I have found out that it is the ear that is deployed first that gets all the requests. Could it be some kind of conflict between the ears because of the context-roots?
/Erik -
3. Re: Virtual Host using Jetty
erikture Oct 8, 2002 3:26 PM (in response to erikture)Here I am again answering my ownquestions.
The text below is found on the www.mortbay.org website describing Jetty.
------------------------------------------------
Alternatively, different applications can be served from the same port using virtual hosts: SocketListener --> HttpServer +-> HttpContext --> HttpHandler(s)
port:80 | vhost: www.alpha.com
| path: "/"
|
+-> HttpContext --> HttpHandler(s)
vhost: www.beta.com
path: "/"
------------------------------------------------
As I understand it different virtual hosts can have the same context root and serve different applications.
How do you configure JBoss to do that?
/Erik -
4. Re: Virtual Host using Jetty
himanshur9 Dec 26, 2002 10:22 AM (in response to erikture)You just deploy two web application with twp diffrent virtualhost
for ex
a> a.war deployed to root(/) with virtual host www.a.com
b>b.war deployed to root(/) with virtual host at www.b.com -
5. Re: Virtual Host using Jetty
m-cuesta Jan 5, 2003 4:53 PM (in response to erikture)Hi:
How can I set the context root for the virtual host in the jboss-web.xml? If I can't make this work, I'll think of running jboss and jetty separately. I know that the virtual host is set like
myhost
but how about the context?