----------------------------------------------------------------
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!!!
----------------------------------------------------------------
Edit the httpd.conf file (on Linux - use the equivalent on Win 9x or NT)
Use the ApJservMount directive:
ApJServMount /share /share_zone
ensure you create the respective directory in : /home/httpd/servlets/share
and have an entry in you jserv.properties file:
zones=share_zone
share_zone.properties=/directory/path/to/servlets/share_zone/share_zone.properties
and edit your share_zone.properties repository file to point to your java
class file(s)
within that directory.
repositories=/home/httpd/servlets/share_zone
Hope this helps.
Tony.
"Xavier Tsai"
<[EMAIL PROTECTED]> To: "Java Apache Users"
Sent by:
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED] cc:
-dogs.com> Subject: Re: Virtual
Host makes Servlet Not found
15/07/2000 17:48
Please respond to "Java Apache
Users"
----------------------------------------------------------------
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]
--
--------------------------------------------------------------
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]