tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Coetmeur, Alain" <>
Subject RE: ajp12 vs ajp13 & mod_jk.conf-auto
Date Wed, 14 Feb 2001 12:14:55 GMT

> -----Message d'origine-----
> De: Mel Martinez []
> Date: mardi 13 février 2001 23:33
> À:
> Objet: ajp12 vs ajp13 & mod_jk.conf-auto
> Question:
> what determines whether ajp12 or ajp13 will be
> specified for a jkmount statement in the
> auto-generated mod_jk.conf-auto file?
> I.E., it always generates statements like:
> JkMount /myapp/servlet/* ajp12
> JkMount /myapp/*.jsp ajp12
> I've even tried disabling all reference to ajp12 from
> server.xml and but that had no
> effect.
> Is the only way to force the use of Ajp13 to manually
> edit the mod_jk.conf file?

as told here you can tweak things, but
the most clean is to use
a separate my-mod_jk.conf include file
that you derivate from the generated mod_jk.conf-auto

if you really want all to be automatic
add a conversion script (sed or perl script) 
to generate the my-mod_jk.conf from the .conf-auto

with cocoon and HTTPS I had to tweak 
thos .conf-auto much more and
nothing is better than manual config when things are stable...

changing the ajp12 alias to point to ajp13 is
really anti-documentation...
on unix try something like

sleep 5 # wait for tomcat to generate the .conf-auto
sed -e 's/ajp12/ajp13/g' <conf/mod_jk.conf-auto >conf/my-mod_jk.conf

don't forget to adapt apache conf/httpd.conf to include
the my-mod_jk.conf instead of the conf-auto

View raw message