tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Turner <tomcat-u...@johnturner.com>
Subject Re: Tomcat + Apache + mod_jk HOWTO
Date Wed, 16 Jul 2003 21:03:45 GMT

If its working for you as you need and expect, its OK.

John

On Wed, 16 Jul 2003 17:57:48 -0300, Juan Nin <juaid@juanin.com> wrote:

> From: "John Turner" <tomcat-user@johnturner.com>
>
>> Typo.  "director" = "directory"
>
> oh, ok, I thought maybe it was a typo  :)
>
>> The problem with having multiple webapps for multiple virtual hosts all
>> under CATALINA_HOME/webapps is that things get a little messy.
>
> yes, I thought of that..
>
>> If you put app1 and app2 under webapps, both of your Hosts will have the
>> same appBase (webapps).  Then things like the Tomcat manager will be
> cross-
>> host, that is, app2 will also work for host1 (www.host1.com/app2) and 
>> app1
>> will work for host2 (www.host2.com/app1).  That may or may not be
>> acceptable...in some cases, app2 should not be accessible to anything
> other
>> than host2.
>
> interesting, in my case they shouldn;t be accesible
>
>> In order to achieve this, you have to set different appBase's for each
> Host
>> (like CATALINA_HOME/hosts/host1 and CATALINA_HOME/hosts/host2).  That's
>> what I was describing earlier.
>
> ok
> now I get what you tried to say :)
>
> in my case the VirtualHost's directory is /var/www/domain.com
> and it's working with the folowwing section in my server.xml file:
>
> <Host name="www.domain.com" debug="0"
> appBase="/var/www/domain.com"
> unpackWARs="true" autoDeploy="true">
>
> <Context path="" docBase="" debug="1"/>
>
> <Valve className="org.apache.catalina.valves.AccessLogValve"
> directory="logs"  prefix="domain.com_access_log."
> suffix=".txt"
> pattern="common" resolveHosts="false"/>
> </Host>
>
> is this ok, or is there any problem?
> I always see all of the examples putting things under CATALINA_HOME, but
> this is working ok in /var/www/domain.com
>
> thnx again for all!!!
>
> Juan
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message