-
1. Re: Mapping virtual hosts to webapplications/context
cuoz Sep 29, 2004 8:11 PM (in response to toni)Give apache mod_rewrite a look.
-
2. Re: Mapping virtual hosts to webapplications/context
toni Sep 30, 2004 9:14 AM (in response to toni)Actually I solved the problem myself. So to share the knowlege with you here comes the solution.
The only thing you have to do is to add a virtual host and root context entry to jboss-web.xml. That's it.
Actually I did this also but their was (stupid me) a spelling mistake. Can't believe it but that was just the problem with the setup.
So, for the example below your jboss-web.xml for the jmx-console should contain:
<root-context>/</root-context>
<virtual-host>webcontext1.domainname.com</virtual-host>
The same holds true for the othe apps... -
3. Re: Mapping virtual hosts to webapplications/context
icordoba Dec 16, 2004 11:40 AM (in response to toni)Hi there,
can anybody confirm that this works with JBoss-4's Tomcat? I can make virtual host work in jboss-web.xml, but cannot use the <root-context> tag to position it at the root context of the virtual host.
Am I missing something?
Thanks,
Ignacio -
4. Re: Mapping virtual hosts to webapplications/context
jimxchen Dec 20, 2004 5:19 PM (in response to toni)Hi Toni,
Just read your message posted here. I am new to this technology and want to run a couple of domain names on my machines. I tried to have the two lines below:
<root-context>/name2</root-context>
<virtual-host>www.name2.com</virtual-host>
Could you please tell me whre is the "name2" directory that I should put the index.html?
Thank you very much.
Best regards,
--Jim