RE: PLEASE HELP: Apache+Tomcat - Virtual hosts + separate VMs

2001-12-19 Thread Larry Isaacs

There is a little documentation about this, which is found
at the following online locations.

Context configuration:

<http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html#context_addcust>

Apache mod_jk.conf generation:

<http://jakarta.apache.org/tomcat/tomcat-3.3-doc/serverxml.html#ApacheConfig>

The result is that a virtual host configuration like:









results in the following in the conf/auto/mod_jk.conf
generated by the ApacheConfig module:

NameVirtualHost xx.xx.xx.xxx

ServerName virtual.host.name
ServerAlias virtual.host.alias 

JkMount /myapp ajp13
JkMount /myapp/* ajp13


When a request comes into Apache for this virtual host,
mod_jk will include the ServerName, "virtual.host.name",
in the forwarded request.  On the Tomcat 3.3 side, this
server name is used in the mapping so that the request
will only map against contexts defined for that virtual
host.  What I don't know is how the ServerName value
would be used by Tomcat 4.x.  It might have the same
effect for virtual hosts configured in Tomcat 4.x, but
I haven't investigated this yet.

Future connector work is happening in the
jakarta-tomcat-connectors project.  Bill Barker has
added org.apache.ajp.tomcat4.config.ApacheConfig and
others to jakarta-tomcat-connectors/jk/java, so there
will likely be something available in Tomcat 4.0.2
and Tomcat 4.1 when they are released.

Cheers,
Larry

> -Original Message-
> From: Noel J. Bergman [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 18, 2001 4:02 PM
> To: Tomcat Users List
> Subject: RE: PLEASE HELP: Apache+Tomcat - Virtual hosts + separate VMs
> 
> 
> Larry,
> 
> Perhaps if you provide your Tomcat 3.3 solution(s), we could 
> see how they
> might apply to Tomcat 4?
> 
> Whom would know Tomcat 4?
> 
>   --- Noel
> 
> -Original Message-
> From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
> 
> Hi Noel,
> 
> Unfortunately my knowledge of Tomcat 4.x internals is still fairly
> limited, so I can't be of much help at this point in time.  My
> primary experience in this area was getting a suitable
> conf/auto/mod_jk generated by Tomcat 3.3 when using virtual hosts.
> 
> Cheers,
> Larry
> 
> > -Original Message-
> > From: Noel J. Bergman [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, December 18, 2001 3:31 PM
> > To: Tomcat Users List
> > Subject: RE: PLEASE HELP: Apache+Tomcat - Virtual hosts + 
> separate VMs
> >
> >
> > Larry,
> >
> > The desired target is Tomcat 4.X.  The revision of Apache is
> > of less issue,
> > so for the moment I can install whichever one is best able to
> > provide a
> > working solution.  Right now, we're running Apache 1.3 and
> > JServ with one
> > JVM per virtual host.  Each JVM runs under an appropriate 
> UID for that
> > virtual host.
> >
> > Our specific interest is to upgrade the web application
> > environment while
> > preserving the isolation between virtual hosts.
> >
> > --- Noel
> >
> > -Original Message-
> > From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
> >
> > It wouldn't hurt to mention which version of Apache and
> > which version of Tomcat.  Regrettably the time I have available
> > to answer questsions (mostly 3.3 and 3.2.x related) is limited.
> > I am usually forced to skip questions that don't bother to
> > mention which verstions are in use.
> >
> > Cheers,
> > Larry
> >
> > > -Original Message-
> > > From: Noel J. Bergman [mailto:[EMAIL PROTECTED]]
> > >
> > > I am STILL trying to find out how to configure Apache+Tomcat
> > > so that EACH virtual host has ITS OWN JVM.  This seems to be
> > > a fairly common question, but no one seems willing to
> > > actually answer it.
> > >
> > > Ideally we want some means that works well with the perchild
> > > module, so that not only is each virtual host assigned its
> > > own privileges under Apache, but each JVM is also restricted
> > > to the privileges available to that uid.
> > >
> > > Thanks!  :-)
> > >
> > >   --- Noel
> 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




AW: PLEASE HELP: Apache+Tomcat - Virtual hosts + separate VMs

2001-12-18 Thread Ralph Einfeldt

As it is possible to use mod_jk in TC 4.* you two could come 
together.

> -Ursprüngliche Nachricht-
> Von: Noel J. Bergman [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 18. Dezember 2001 22:02
> An: Tomcat Users List
> Betreff: RE: PLEASE HELP: Apache+Tomcat - Virtual hosts + separate VMs
> 
> 
> Larry,
> 
> Perhaps if you provide your Tomcat 3.3 solution(s), we could 
> see how they
> might apply to Tomcat 4?
> 
> Whom would know Tomcat 4?
> 
>   --- Noel
> 
> -Original Message-
> From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
> 
> Hi Noel,
> 
> Unfortunately my knowledge of Tomcat 4.x internals is still fairly
> limited, so I can't be of much help at this point in time.  My
> primary experience in this area was getting a suitable
> conf/auto/mod_jk generated by Tomcat 3.3 when using virtual hosts.
> 
> Cheers,
> Larry
> 
> > -Original Message-
> > From: Noel J. Bergman [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, December 18, 2001 3:31 PM
> > To: Tomcat Users List
> > Subject: RE: PLEASE HELP: Apache+Tomcat - Virtual hosts + 
> separate VMs
> >
> >
> > Larry,
> >
> > The desired target is Tomcat 4.X.  The revision of Apache is
> > of less issue,
> > so for the moment I can install whichever one is best able to
> > provide a
> > working solution.  Right now, we're running Apache 1.3 and
> > JServ with one
> > JVM per virtual host.  Each JVM runs under an appropriate 
> UID for that
> > virtual host.
> >
> > Our specific interest is to upgrade the web application
> > environment while
> > preserving the isolation between virtual hosts.
> >
> > --- Noel
> >
> > -Original Message-
> > From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
> >
> > It wouldn't hurt to mention which version of Apache and
> > which version of Tomcat.  Regrettably the time I have available
> > to answer questsions (mostly 3.3 and 3.2.x related) is limited.
> > I am usually forced to skip questions that don't bother to
> > mention which verstions are in use.
> >
> > Cheers,
> > Larry
> >
> > > -Original Message-
> > > From: Noel J. Bergman [mailto:[EMAIL PROTECTED]]
> > >
> > > I am STILL trying to find out how to configure Apache+Tomcat
> > > so that EACH virtual host has ITS OWN JVM.  This seems to be
> > > a fairly common question, but no one seems willing to
> > > actually answer it.
> > >
> > > Ideally we want some means that works well with the perchild
> > > module, so that not only is each virtual host assigned its
> > > own privileges under Apache, but each JVM is also restricted
> > > to the privileges available to that uid.
> > >
> > > Thanks!  :-)
> > >
> > >   --- Noel
> 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 
> 
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: PLEASE HELP: Apache+Tomcat - Virtual hosts + separate VMs

2001-12-18 Thread Guido Medina

The normal server.xml contains a directive called host, just copy,paste and
change the name parameter to the host name you want, eliminate all the
context but the empty one (ROOT) and that's it, rename, let the standard for
the standard examples and duplicate it for every host, after activate the
warp connector, go to the Proxy how-to, be patient, is very difficult to
migrate from 3.x to 4.x, but it is not imposible, is not even a big deal,
the key is to read the hold manual, expending two days (6hrs X 2) and that's
it.

Regards,

Guido.

-Original Message-
From: Noel J. Bergman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 5:02 PM
To: Tomcat Users List
Subject: RE: PLEASE HELP: Apache+Tomcat - Virtual hosts + separate VMs


Larry,

Perhaps if you provide your Tomcat 3.3 solution(s), we could see how they
might apply to Tomcat 4?

Whom would know Tomcat 4?

--- Noel

-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED]]

Hi Noel,

Unfortunately my knowledge of Tomcat 4.x internals is still fairly
limited, so I can't be of much help at this point in time.  My
primary experience in this area was getting a suitable
conf/auto/mod_jk generated by Tomcat 3.3 when using virtual hosts.

Cheers,
Larry

> -Original Message-
> From: Noel J. Bergman [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 18, 2001 3:31 PM
> To: Tomcat Users List
> Subject: RE: PLEASE HELP: Apache+Tomcat - Virtual hosts + separate VMs
>
>
> Larry,
>
> The desired target is Tomcat 4.X.  The revision of Apache is
> of less issue,
> so for the moment I can install whichever one is best able to
> provide a
> working solution.  Right now, we're running Apache 1.3 and
> JServ with one
> JVM per virtual host.  Each JVM runs under an appropriate UID for that
> virtual host.
>
> Our specific interest is to upgrade the web application
> environment while
> preserving the isolation between virtual hosts.
>
>   --- Noel
>
> -Original Message-
> From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
>
> It wouldn't hurt to mention which version of Apache and
> which version of Tomcat.  Regrettably the time I have available
> to answer questsions (mostly 3.3 and 3.2.x related) is limited.
> I am usually forced to skip questions that don't bother to
> mention which verstions are in use.
>
> Cheers,
> Larry
>
> > -Original Message-
> > From: Noel J. Bergman [mailto:[EMAIL PROTECTED]]
> >
> > I am STILL trying to find out how to configure Apache+Tomcat
> > so that EACH virtual host has ITS OWN JVM.  This seems to be
> > a fairly common question, but no one seems willing to
> > actually answer it.
> >
> > Ideally we want some means that works well with the perchild
> > module, so that not only is each virtual host assigned its
> > own privileges under Apache, but each JVM is also restricted
> > to the privileges available to that uid.
> >
> > Thanks!  :-)
> >
> > --- Noel


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>



RE: PLEASE HELP: Apache+Tomcat - Virtual hosts + separate VMs

2001-12-18 Thread Noel J. Bergman

Larry,

Perhaps if you provide your Tomcat 3.3 solution(s), we could see how they
might apply to Tomcat 4?

Whom would know Tomcat 4?

--- Noel

-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED]]

Hi Noel,

Unfortunately my knowledge of Tomcat 4.x internals is still fairly
limited, so I can't be of much help at this point in time.  My
primary experience in this area was getting a suitable
conf/auto/mod_jk generated by Tomcat 3.3 when using virtual hosts.

Cheers,
Larry

> -Original Message-
> From: Noel J. Bergman [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 18, 2001 3:31 PM
> To: Tomcat Users List
> Subject: RE: PLEASE HELP: Apache+Tomcat - Virtual hosts + separate VMs
>
>
> Larry,
>
> The desired target is Tomcat 4.X.  The revision of Apache is
> of less issue,
> so for the moment I can install whichever one is best able to
> provide a
> working solution.  Right now, we're running Apache 1.3 and
> JServ with one
> JVM per virtual host.  Each JVM runs under an appropriate UID for that
> virtual host.
>
> Our specific interest is to upgrade the web application
> environment while
> preserving the isolation between virtual hosts.
>
>   --- Noel
>
> -Original Message-
> From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
>
> It wouldn't hurt to mention which version of Apache and
> which version of Tomcat.  Regrettably the time I have available
> to answer questsions (mostly 3.3 and 3.2.x related) is limited.
> I am usually forced to skip questions that don't bother to
> mention which verstions are in use.
>
> Cheers,
> Larry
>
> > -Original Message-
> > From: Noel J. Bergman [mailto:[EMAIL PROTECTED]]
> >
> > I am STILL trying to find out how to configure Apache+Tomcat
> > so that EACH virtual host has ITS OWN JVM.  This seems to be
> > a fairly common question, but no one seems willing to
> > actually answer it.
> >
> > Ideally we want some means that works well with the perchild
> > module, so that not only is each virtual host assigned its
> > own privileges under Apache, but each JVM is also restricted
> > to the privileges available to that uid.
> >
> > Thanks!  :-)
> >
> > --- Noel


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: PLEASE HELP: Apache+Tomcat - Virtual hosts + separate VMs

2001-12-18 Thread Larry Isaacs

Hi Noel,

Unfortunately my knowledge of Tomcat 4.x internals is still fairly
limited, so I can't be of much help at this point in time.  My
primary experience in this area was getting a suitable
conf/auto/mod_jk generated by Tomcat 3.3 when using virtual hosts.

Cheers,
Larry

> -Original Message-
> From: Noel J. Bergman [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 18, 2001 3:31 PM
> To: Tomcat Users List
> Subject: RE: PLEASE HELP: Apache+Tomcat - Virtual hosts + separate VMs
> 
> 
> Larry,
> 
> The desired target is Tomcat 4.X.  The revision of Apache is 
> of less issue,
> so for the moment I can install whichever one is best able to 
> provide a
> working solution.  Right now, we're running Apache 1.3 and 
> JServ with one
> JVM per virtual host.  Each JVM runs under an appropriate UID for that
> virtual host.
> 
> Our specific interest is to upgrade the web application 
> environment while
> preserving the isolation between virtual hosts.
> 
>   --- Noel
> 
> -Original Message-
> From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
> 
> It wouldn't hurt to mention which version of Apache and
> which version of Tomcat.  Regrettably the time I have available
> to answer questsions (mostly 3.3 and 3.2.x related) is limited.
> I am usually forced to skip questions that don't bother to
> mention which verstions are in use.
> 
> Cheers,
> Larry
> 
> > -Original Message-
> > From: Noel J. Bergman [mailto:[EMAIL PROTECTED]]
> >
> > I am STILL trying to find out how to configure Apache+Tomcat
> > so that EACH virtual host has ITS OWN JVM.  This seems to be
> > a fairly common question, but no one seems willing to
> > actually answer it.
> >
> > Ideally we want some means that works well with the perchild
> > module, so that not only is each virtual host assigned its
> > own privileges under Apache, but each JVM is also restricted
> > to the privileges available to that uid.
> >
> > Thanks!  :-)
> >
> > --- Noel
> 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: PLEASE HELP: Apache+Tomcat - Virtual hosts + separate VMs

2001-12-18 Thread Noel J. Bergman

Larry,

The desired target is Tomcat 4.X.  The revision of Apache is of less issue,
so for the moment I can install whichever one is best able to provide a
working solution.  Right now, we're running Apache 1.3 and JServ with one
JVM per virtual host.  Each JVM runs under an appropriate UID for that
virtual host.

Our specific interest is to upgrade the web application environment while
preserving the isolation between virtual hosts.

--- Noel

-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED]]

It wouldn't hurt to mention which version of Apache and
which version of Tomcat.  Regrettably the time I have available
to answer questsions (mostly 3.3 and 3.2.x related) is limited.
I am usually forced to skip questions that don't bother to
mention which verstions are in use.

Cheers,
Larry

> -Original Message-
> From: Noel J. Bergman [mailto:[EMAIL PROTECTED]]
>
> I am STILL trying to find out how to configure Apache+Tomcat
> so that EACH virtual host has ITS OWN JVM.  This seems to be
> a fairly common question, but no one seems willing to
> actually answer it.
>
> Ideally we want some means that works well with the perchild
> module, so that not only is each virtual host assigned its
> own privileges under Apache, but each JVM is also restricted
> to the privileges available to that uid.
>
> Thanks!  :-)
>
>   --- Noel


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: PLEASE HELP: Apache+Tomcat - Virtual hosts + separate VMs

2001-12-18 Thread Larry Isaacs

It wouldn't hurt to mention which version of Apache and
which version of Tomcat.  Regrettably the time I have available
to answer questsions (mostly 3.3 and 3.2.x related) is limited.
I am usually forced to skip questions that don't bother to
mention which verstions are in use.

Cheers,
Larry

> -Original Message-
> From: Noel J. Bergman [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 17, 2001 4:18 PM
> To: [EMAIL PROTECTED]
> Subject: PLEASE HELP: Apache+Tomcat - Virtual hosts + separate VMs
> Importance: High
> 
> 
> I am STILL trying to find out how to configure Apache+Tomcat 
> so that EACH
> virtual host has ITS OWN JVM.  This seems to be a fairly 
> common question,
> but no one seems willing to actually answer it.
> 
> Ideally we want some means that works well with the perchild 
> module, so that
> not only is each virtual host assigned its own privileges 
> under Apache, but
> each JVM is also restricted to the privileges available to that uid.
> 
> Thanks!  :-)
> 
>   --- Noel
> 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: PLEASE HELP: Apache+Tomcat - Virtual hosts + separate VMs

2001-12-17 Thread James Chuang

Noel:

Let me give this one a shot.  I just did this for Tomcat 3.24 over the
weekend.

To each have a separate JVM, you basically need multiple Tomcat sessions.
Which means, you need multiple server.xml, each with it's own context
definition serving a particular JVM.

So, here is what you need to do:

Configure Apache to support each virtual host.  In my case, I used the
NameVirtualHost settings, and for each virtual host, I had a different
document root.

Create a mod_jk.conf that supports directing traffic to different VHOSTS
based on some sort of path.  This is the important parts:

Alias /host1 "/opt/host1"

Options FollowSymLinks

JkMount /host1/servlet/* ajp13
JkMount /host1/*.jsp ajp13

Alias /host2 "/opt/host2"

Options FollowSymLinks

JkMount /host2/servlet/* ajp13_2
JkMount /host2/*.jsp ajp13_2

Notice that the ajp workers are labeled differently.

Now, modify workers.properties to support the new workers...  There are 2
new workers, one to support the admin functionality of each tomcat server,
and one to support the connection to Apache
>>>
worker.list=ajp12, ajp12_2, ajp13, ajp13_2

worker.ajp12.port=8007
worker.ajp12.host=localhost
worker.ajp12.type=ajp12
worker.ajp12.lbfactor=1
worker.ajp12_2.port=8010
worker.ajp12_2.host=localhost
worker.ajp12_2.type=ajp12
worker.ajp12_2.lbfactor=1

worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
worker.ajp13_2.port=8011
worker.ajp13_2.host=localhost
worker.ajp13_2.type=ajp13
worker.ajp13_2.lbfactor=1

Now, make copies of server.xml, one that is server1.xml, and one is
server2.xml.  Server 1 would have context stuff looking like this:







  
  





And server2.xml would have the ports modified appropriately, and with the
right context definition.

Now, start tomcat by doing this:

startup.sh -f  $TOMCAT_HOME/conf/server1.xml

You need to specify the -f parameter for shutdown as well.

If all this is done right, you now have 2 tomcat's running, each with it's
own JVM, each with it's own context and vhost support.

Good luck!

jchuang






- Original Message -
From: "Noel J. Bergman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 17, 2001 1:17 PM
Subject: PLEASE HELP: Apache+Tomcat - Virtual hosts + separate VMs


> I am STILL trying to find out how to configure Apache+Tomcat so that EACH
> virtual host has ITS OWN JVM.  This seems to be a fairly common question,
> but no one seems willing to actually answer it.
>
> Ideally we want some means that works well with the perchild module, so
that
> not only is each virtual host assigned its own privileges under Apache,
but
> each JVM is also restricted to the privileges available to that uid.
>
> Thanks!  :-)
>
> --- Noel
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>


- Original Message -----
From: "Noel J. Bergman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 17, 2001 1:17 PM
Subject: PLEASE HELP: Apache+Tomcat - Virtual hosts + separate VMs


> I am STILL trying to find out how to configure Apache+Tomcat so that EACH
> virtual host has ITS OWN JVM.  This seems to be a fairly common question,
> but no one seems willing to actually answer it.
>
> Ideally we want some means that works well with the perchild module, so
that
> not only is each virtual host assigned its own privileges under Apache,
but
> each JVM is also restricted to the privileges available to that uid.
>
> Thanks!  :-)
>
> --- Noel
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




PLEASE HELP: Apache+Tomcat - Virtual hosts + separate VMs

2001-12-17 Thread Noel J. Bergman

I am STILL trying to find out how to configure Apache+Tomcat so that EACH
virtual host has ITS OWN JVM.  This seems to be a fairly common question,
but no one seems willing to actually answer it.

Ideally we want some means that works well with the perchild module, so that
not only is each virtual host assigned its own privileges under Apache, but
each JVM is also restricted to the privileges available to that uid.

Thanks!  :-)

--- Noel


--
To unsubscribe:   
For additional commands: 
Troubles with the list: