----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Yup, I had made "ApJServMountCopy on"
and also tried your suggested setup, and Jserv works for each named virtual
host.
But I want to do mass hosting such that I need not enter a Virtual Host
session for each virtual domain, so I try to use "VirtualDocumentRoot"
instead of "DocumentRoot" in the VirtualHost directive. Then the servlet is
reported to be not existed.
Thanks and still need advice.
Xavier Tsai
----- Original Message -----
From: Sheer El-Showk <[EMAIL PROTECTED]>
To: Java Apache Users <[EMAIL PROTECTED]>
Sent: Saturday, July 15, 2000 11:47 PM
Subject: Re: Virtual Host makes Servlet Not found
> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files. Don't make us guess your problem!!!
> ----------------------------------------------------------------
>
> There is a setting in jserv.conf, ApJServMountCopy, which must be "on" for
> virtual hosts to inherit global servlet zones (which seems to be how you
> are defining it):
>
> # Whether <VirtualHost> inherits base host mount points or not
> # Syntax: ApJServMountCopy [on/off]
> # Default: "On"
> # Note: This directive is meaninful only when virtual hosts are being used
> ApJServMountCopy on
>
>
> I'm a little confused at your setup -- why don't you try something like
> this:
>
> <VirtualHost XXX.XXX.XXX.XXX>
>
> ServerName www.domain1.com
> DocumentRoot /home/www.domain1.com
>
> <IfModule mod_jserv.c>
>
> ApJServMount /servlet /ZONE_NAME
>
> </IfModule>
>
> </VirtualHost>
>
> And then set up the zone, ZONE_NAME, normally in jserv.properties. This
> will prohibit other virtual hosts from using that zone (I got this
> somewhere off the Apache Jserv FAQ a while ago). Please note that the
> <VirtualHost> entry above may have erroneous syntax -- its not from a
> functional setup but from memory from a setup I used a while ago.
>
> Best regards,
> Sheer El-Showk
>
>
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Search Archives:
> <http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
> Problems?: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search Archives:
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]