tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From VEGH Karoly <>
Subject one apache, more tomcat installations, one mod_jk, NameVirtualHost JkDirectives
Date Sun, 04 Apr 2004 16:00:44 GMT


Shortly: I have problems with configuring more tomcat installations
with one apache installation on one linux box.

apache2 2.0.48
mod_jk2 - compiled from new source
tomcat 4.1.30

I set up the NameVirtualHosts thing in apache, but I'm not sure
which is the right way to go on.

I would like to use more files, so that the tomcat
instances are completely separated from eachoter (own shm files, etc.)

but in the filepath is hardcoded: ...

atsrvlx03:/etc/apache2# strings /usr/lib/apache2/modules/ | grep -i workers2

... and I have only one apache installation, no separated serverRoot.
This means I must have an /etc/apache2/conf/ file.

Unfortunately I cannot just use the uri directives: ...

info=Project1 - DEV

... in the central file, since I have two tomcat
installations or the same project with the Project1 name, one DEV installation
and one TEST installation.

I did the following in the VirtualHosts:

atsrvlx03:/etc/apache2# cat sites-available/project1-dev01 
NameVirtualHost *:80

 <VirtualHost *:80>

        DocumentRoot /var/www/
        <Directory />
                Options FollowSymLinks
                AllowOverride None

        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all

        ErrorLog /var/log/apache2/project1-dev01-error.log
        CustomLog /var/log/apache2/project1-dev01-access.log combined

<IfModule mod_jk.c>
        JkWorkersFile /etc/apache2/conf/
        JkMount /PROJECT1/servlet/MainServlet/* ajp13
        JkMount /PROJECT1/servlet/MainServlet ajp13
        JkLogFile "/var/log/apache2/project1-dev01-mod_jk.log"

    <Location "/*.jsp">
            JkUriSet worker ajp13:localhost:8009 
    <Location "/PROJECT1/servlet/MainServlet/*.jsp">
            JkUriSet worker ajp13:localhost:8009 


        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel debug

        ServerSignature On


in the apache log at trying to acces the site, I only get:

[Sun Apr 04 17:56:50 2004] [error] workerEnv.init() create slot epStat.0 failed
[Sun Apr 04 17:56:50 2004] [error] mod_jk.handler() Error connecting to tomcat 120000

What kind of information is neccessary more?

any help is appreciated.


Végh Károly -  System Engineer - UTA - TIS.SAS.BSS
"There are two major products that come out of Berkeley: LSD and UNIX.
 We don't believe this to be a coincidence." 
 				- Jeremy S. Anderson

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message