Jon, thanks.  That explanation was very clear.

My problem was that I didn't understand that I could put the ApJServMount
directive directly inside <VirtualHost> in my httpd.conf.  I had the
ApJServMount directives in my jserv.conf file which gets included at the
bottom of my httpd.conf file and therefore seems to apply to all of my
virtual hosts.

Could you help me to clarify one more point in the
http://java.apache.org/jserv/zones.html documentation?  The below passage
talks about jserv.yourDomain.com and I had thought this was explaining how
jserv.yourDomain.com could exist on a different machine.  This is why I said
"...that seems to explain how to make different zones exist on different
machines..."  Isn't that the case?  Either way, I should have been able to
figure out that ApJServMount was an httpd.conf directive that I could have
put in <VirtualHost>

********** From http://java.apache.org/jserv/zones.html ************
         ApJServMount /bob/servlets ajpv11://jserv.yourDomain.com:9009/bob
         ApJServMount /alice/servlets
ajpv11://jserv.yourDomain.com:9009/alice

     Now, both Bob and his web clients connect to his servlets with the URL
     http://www.yourDomain.com/bob/servlets and the same is for Alice.

     The possibility to mount both local and remote servlet zones (note that
     jserv.yourDomain.com may reside on another machine as much as different
zones may
********** From http://java.apache.org/jserv/zones.html ************

Again thanks for all your help,
Stirling

-----Original Message-----
From: jon * [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 27, 1999 4:32 PM
To: Java Apache Users
Subject: Re: zones


> If so, that seems to explain how to make different zones exist on
different
> machines (I think)

Wow, that is not what it says at all. In fact, it doesn't even give an
example of different machines.

> I'm hoping to use the same zone name (but as
> separate zones) for two domains on the same machine.

Here is what you want:

in your httpd.conf:

<VirtualHost www.domain1.com>
ApJServMount /servlet /domain1
<VirtualHost>

<VirtualHost www.domain2.com>
ApJServMount /servlet /domain2
<VirtualHost>

in your jserv.properties:
zones=domain1,domain2
domain1.properties=/path/to/domain1.properties
domain2.properties=/path/to/domain2.properties

in your domain1.properties:
repositories=/path/to/directory/with/servlets/class/files/domain1

in your domain1.properties:
repositories=/path/to/directory/with/servlets/class/files/domain2

Please take the extra time to study that zones document. Things should be
quite clear from that document on the general overview of how to do
configuration for things. Also, read the Apache documentation.

-jon


----------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
READ THE FAQ!!!!     <http://java.apache.org/faq/>
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]


----------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
READ THE FAQ!!!!     <http://java.apache.org/faq/>
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to