[prev in list] [next in list] [prev in thread] [next in thread]
List: tapestry-user
Subject: Re: tapestry deploy on tomcat contextPath / setting or equivalent
From: "Chris Mylonas" <chris () opencsta ! org>
Date: 2014-10-27 12:43:16
Message-ID: op.xod2yevfbx0v5y () mylos-macbook-air ! local
[Download RAW message or body]
This page answered my question
http://www.jvmhost.com/articles/how-to-configure-tomcat-with-multiple-virtual-hosts
In case it disappears in the future, this is the important bit
<Host name="domain1.com" autoDeploy="true" appBase="webapps"
unpackWARs="true">
<Alias>www.domain1.com</Alias>
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="%h
%l %u %t "%r" %s %b" resolveHosts="false"/>
<Context path="" docBase="domain1" debug="0" reloadable="true"/>
</Host>
<Host name="domain2.com" autoDeploy="true" appBase="webapps"
unpackWARs="true">
<Alias>www.domain2.com</Alias>
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="%h
%l %u %t "%r" %s %b" resolveHosts="false"/>
<Context path="" docBase="domain2" debug="0" reloadable="true"/>
</Host>
Thanks
Chris
On Mon, 27 Oct 2014 23:03:36 +1100, Chris Mylonas <chris@opencsta.org>
wrote:
> Hi Tapestry Users,
>
>
> Where would I look to deploy a tapestry sites on one tomcat instance
> that are served up by a domain names behind apache http?
>
> I recently found
>
> <plugin>
> <groupId>org.mortbay.jetty</groupId>
> <artifactId>maven-jetty-plugin</artifactId>
> <version>6.1.16</version>
> <configuration>
> <contextPath>/</contextPath>
> ...
> ...
>
> for dev (contextPath set to /) so i don't get the redirect.
>
>
> Seeing as there is probably more than one way to skin the cat, I presume
> there would be a tapestry way of answering requests to www.domain1.com
> rather than www.domain1.com/myApp/
>
>
> Further, is there a tapestry way of answering requests to
> www.domain1.com in one tapestry app, and then deploy a 2nd tapestry app
> to reply on www.domain2.com?
>
>
> Cheers
> Chris
--
Using Opera's mail client: http://www.opera.com/mail/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic