----------------------------------------------------------------
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!!!
----------------------------------------------------------------

We've been running Apache/JServ for some time now in a virtual host/multiple
zone setup in our development region.  Each developer has his/her own
virtual host and own zone.

After starting the JVM, everything works well for a few hours.  But then all
the zone setups break down and all requests go to a single zone.  For
example when things are working correctly -

Requests for Host A => Go to Zone A
Requests for Host B => Go to Zone B
Requests for Host C => Go to Zone C

When things break down

Requests for Host A => Go to Zone C
Requests for Host B => Go to Zone C
Requests for Host C => Go to Zone C

It's always the last zone in the jserv.properties file that winds up
receiving all the requests.  The log files do not seem to indicate any weird
situation.  Neither does jserv status.  It's also not a DNS issue because
when I print out the hostname within a servlet, the mapping is okay.  That
is, getServerName() returns "Host A" even when the request has been routed
to Zone C.

Has anyone seen anything like this before?

general
=======
JServ 1.1
Apache 1.3.11
Red Hat Linux 6.0
Blackdown JDK 1.2 Prerelease 2 running green threads


httpd.conf
==========
ApJServManual on
ApJServProperties /usr/local/apache/conf/jserv.properties
ApJServLogFile DISABLED
ApJServLogLevel notice
ApJServDefaultProtocol ajpv12
ApJServDefaultPort 8000
ApJServDefaultHost localhost
ApJServSecretKey DISABLED
ApJServMountCopy on

<Location /jserv/>
    SetHandler jserv-status
    order deny,allow
    deny from all
    allow from localhost
</Location>

NameVirtualHost 198.138.98.48
<VirtualHost 198.138.98.48>
    ServerName www.invertica.com
    DocumentRoot /home/prod/invertica/www/html
    DirectoryIndex index.html
    ErrorLog /home/prod/invertica/logs/error.log
    RewriteEngine on
    RewriteOptions inherit
    ApJServDefaultPort 8000
    ApJServMount /servlets /www
</VirtualHost>

<VirtualHost 198.138.98.48>
    ServerName stage.invertica.com
    DocumentRoot /home/stage/invertica/www/html
    DirectoryIndex index.html
    ErrorLog /home/stage/invertica/logs/error.log
    RewriteEngine on
    RewriteOptions inherit
    ApJServDefaultPort 8000
    ApJServMount /servlets /stage
</VirtualHost>



jserv.properties
================
zones=www,stage
www.properties=/usr/local/apache/conf/www.properties
stage.properties=/usr/local/apache/conf/stage.properties




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

Reply via email to