tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Mayes <cma...@cmayes.org>
Subject Virtual Host hiding JkMount directives?
Date Thu, 16 Nov 2006 03:39:55 GMT
Hi, all.

I seem to be having a bit of trouble with virtual hosts and mod_jk.  
JkMount directives in a VirtualHost are ignored:

<VirtualHost *>
  ServerName censea.cmayes.org
  JkMount /* ajp13

  ErrorLog /var/log/apache2/censea_error_log
  TransferLog /var/log/apache2/censea_access_log

  DocumentRoot /usr/local/www/
  DirectoryIndex index.jsp
</VirtualHost>

mod_jk log:

[Wed Nov 15 21:02:08 2006] [11224:0000] [debug] init_jk::mod_jk.c 
(2355): Initialized shm:/var/log/apache2/memory.shm
[Wed Nov 15 21:02:08 2006] [11224:0000] [debug] 
uri_worker_map_open::jk_uri_worker_map.c (361): rule map size is 0
[Wed Nov 15 21:02:08 2006] [11224:0000] [debug] 
build_worker_map::jk_worker.c (236): creating worker ajp13

If I move the directive outside of the VirtualHost block, it gets picked up:

  JkMount /* ajp13
<VirtualHost *>
...

mod_jk log:

[Wed Nov 15 21:03:36 2006] [11576:0000] [debug] init_jk::mod_jk.c 
(2355): Initialized shm:/var/log/apache2/memory.shm
[Wed Nov 15 21:03:36 2006] [11576:0000] [debug] 
uri_worker_map_open::jk_uri_worker_map.c (361): rule map size is 1
[Wed Nov 15 21:03:36 2006] [11576:0000] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (298): wildchar rule /*=ajp13 
was added
[Wed Nov 15 21:03:36 2006] [11576:0000] [debug] 
build_worker_map::jk_worker.c (236): creating worker ajp13

Here's my tomcat server.xml:
<Server port="8005" shutdown="SHUTDOWN">
  <Service name="Catalina">
    <Connector port="8080" />

    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="8009"
               enableLookups="false" redirectPort="8443" 
protocol="AJP/1.3" />

    <Engine name="Catalina" defaultHost="censea.cmayes.org">

      <Host name="censea.cmayes.org" appBase="nothing">
        <Context path="" docBase="/usr/local/tomcat/censea/trawler.war"/>
        <Logger className="org.apache.catalina.logger.FileLogger"/>
      </Host>

    </Engine>
  </Service>
</Server>


I'm running Ubuntu Edgy Eft (6.10) with:
Apache Tomcat/5.5.15 (dropped in /usr/local/tomcat; not a distro package)
apache2 2.0.55-4ubuntu4
libapache2-mod-jk 1.2.18-1ubuntu1

Thanks,

-Chris

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message