Ari Halberstadt wrote:
>
> Define a different servlet zone for each domain.
>
> <VirtualHost [IP#]>
> <IfModule mod_jserv.c>
> ApJServDefaultPort 8007
> ApJServAction .gsp /servlets/gsp
> ApJServMount /servlets /domain1
> </IfModule>
> </VirtualHost>
>
> <VirtualHost [IP#]>
> <IfModule mod_jserv.c>
> ApJServDefaultPort 8007
> ApJServAction .gsp /servlets/gsp
> ApJServMount /servlets /domain2
> </IfModule>
> </VirtualHost>
>
> <IfModule mod_jserv.c>
> ApJServManual off
> ApJServMountCopy on
> ApJServDefaultPort 8007
> ApJServProperties /usr/local/apache/etc/jserv.properties
> ApJServSecretKey /usr/local/apache/etc/jserv.secret.key
> ApJServLogFile /var/log/apache/jserv.log
> ApJServMount /share/servlets /share
> <Location /status/jserv/>
> SetHandler jserv-status
> order deny,allow
> deny from all
> allow from yourdomain.com
> </Location>
> </IfModule>
>
Propably this is not exactly what you wanted to do. If I understand it
correctly
only one JVM is run for all the zones. This means if one Servlet in any
zone
calls System.exit the JVM is stopped and so are all zones.
What you should do is to start a JVM for each zone manually and use
different
ports for the JServ engine.
We are using this kind of setup in developement. When one needs to
restart 'his'
engine no one else is concerned.
We did not set up virtual hosts, but this should not make a difference.
Are there any plans to allow kind of independent zones with respect to
security and stability?
Stefan
----------------------------------------------------------------
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]