Tugger the SLUGger!SLUG Mailing List Archives

[SLUG] apache virtual hosting with Jserv


I'm sooo close to getting this to work it hurts....

currently running apache1.3.12, jserv 112 on win32 - NT (prefer to run on *nix, office politics... :( )

have apache/jserv running as a standalone no problem.

managed to get virtual host working ok with apache only, no problem.

What I want to achieve is environments for development/Quality Assurance/Production running with the same servlet zone name so that migration between each environment will not require renaming of addresses to call servlets.

I have been using (among others) the java FAQ entry "I'm hoping to use the same zone name (but as separate zones) for two domains on the same machine."

Did the first 1/2, editing/configuring httpd.conf, jserv.conf, jserv.properties and creating new servlet-zone.properties for each of the environments.

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

and got the message "Invalid command ApJservMount, perhaps mispelled or defined by a module not included in the server configuration.

looking at the howto again I'm not sure of this, I'm using name based virtual hosting, ie
XXXXXX
<VirtualHost Develnexus.optus.com.au>
   ServerAdmin bmatthewtaylor@xxxxxxxxxxx
   DocumentRoot "c:/nexusdraft2/apache/DevelNexus/htdocs"
   ServerName Develnexus.optus.com.au
   ErrorLog logs/DevelNexus.log
   CustomLog logs/DevelNexusaccess.log common
   ApJServMount /servlets /Develnexus
   ApJServMount /servlet /Develnexus
</VirtualHost>
XXXXXXX

the howto says ....
XXXXXXXX
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
XXXXXXx


not sure if I have read it right, is the second 1/2 meant to go into the httpd.conf?? anyone able to point me to a working copy of configuration files??

many thanks.

Mat.
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at http://profiles.msn.com.