Re: Re: Re: Re: multiple web domains
Rafał Krupiński <[email protected]>
| Newsgroups | gmane.comp.java.objectweb.jonas |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Nov 12, 2010 at 20:52, James Lee <[email protected]> wrote: > On 12/11/10, 19:32:19, =?UTF-8?B?UmFmYcWCIEtydXBpxYRza2k=?= > <[email protected]> wrote regarding [jonas] Re: Re: multiple web > domains: > >> Actually I want to publish two applications under different domain >> names using one jonas instance, like this: >> app1.war -> http://example.com/ >> app2.war -> http://nonexistent.com/ > > I use a file called jonas-web.xml which contains: > > <?xml version="1.0" encoding="ISO-8859-1"?> > <jonas-web-app xmlns="http://www.objectweb.org/jonas/ns" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.objectweb.org/jonas/ns > http://www.objectweb.org/jonas/ns/jonas-web-app_4_2.xsd"> > > <host>THE_HOST_NAME</host> > <context-root>/</context-root> > > </jonas-web-app> Plus I needed to declare a Host in tomcat6-server.xml and it works! Thank you Regards Rafał Krupiński