Re: Re: Re: Re: Re: multiple web domains

James Lee <[email protected]>
Newsgroups gmane.comp.java.objectweb.jonas
Message-ID <[email protected]>
On 13/11/10, 15:56:10, =?UTF-8?B?UmFmYcWCIEtydXBpxYRza2k=?= 
<[email protected]> wrote regarding [jonas] Re: Re: 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:
...

> Plus I needed to declare a Host in tomcat6-server.xml and it works!

Sorry, I should have mentioned this file too.  I use Jetty and I guess
the equivalent file is jetty-web.xml:

<?xml version="1.0"  encoding="ISO-8859-1"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" 
"http://jetty.mortbay.org/configure.dtd">

<Configure class="org.mortbay.jetty.servlet.WebApplicationContext">
    <Set name="virtualHosts">
        <Array type="java.lang.String">
            <Item>HOSTNAME</Item>
            <Item>HOSTNAME_ALIAS</Item>
            <Item>HOSTNAME_ALIAS</Item>
        </Array>
    </Set>
</Configure>




James.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.