You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Erki Kriks <er...@eer.ee> on 2003/03/20 09:49:36 UTC
mod_jk.conf and ajp13
Hello!
I want to use ajp13 (not ajp12).
I'm using Windows 2000 server and tomcat 3.2.1
I have declared into mod_jk.conf following lines:
LoadModule jk_module modules/mod_jk.dll
<IfModule mod_jk.c>
JkWorkersFile <fill-path-to>/workers.properties
JkLogFile logs/jk.log
JkLogLevel warn
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /examples/* ajp13
</IfModule>
But when tomcat is started then i can see in mod_jk.conf-auto following
lines:
...
JkMount /*.jsp ajp12
JkMount /servlet/* ajp12
....
JkMount /examples/servlet/* ajp12
JkMount /examples/*.jsp ajp12
How it is possible? I declared ajp13??
Many thanx!
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: mod_jk.conf and ajp13
Posted by tito santini <ti...@netikos.com>.
Hi!
I suppose ajp12 is used in tomcat 3.2.1 to shutdown Tomcat, so it's still
required.
If you're still having trouble, you'd check which mod_jk configuration file
is used to configure mod_jk:
every time Tomcat restarts, it creates a new auto-config files, which, as
you noted, declares
to use only ajp12. You should tell httpd-server to use your mod_jk
configuration file.
(i.e. in Apache, you'd modify the last line of httpd.conf in
"include ..../tomcat-MY_mod_jk.conf" )
----- Original Message -----
From: "Erki Kriks" <er...@eer.ee>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Thursday, March 20, 2003 11:08 AM
Subject: Re: mod_jk.conf and ajp13
> Hi!
>
> Thank you for your help!
> I have the same configuration.
> But why are you using "worker.list=ajp12, ajp13" instead of
> "worker.list=ajp13 ", while ajp13 is only required?
>
> It's very interesting, all auto-configuration files includes only ajp12
> (instead of ajp13)?
> But nowhere ajp12 is declared, only ajp13 is used :-)
>
>
> > Hello,
> > did you uncommented the following lines in server.xml?
> >
> >
> > <!-- Apache AJP13 support. This is also used to shut down tomcat.
> > -->
> > <Connector
className="org.apache.tomcat.service.PoolTcpConnector">
> > <Parameter name="handler"
> >
> value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/>
> > <Parameter name="port" value="8009"/>
> > </Connector>
> >
> > and your workers.properties has something similar to the following
lines:
> >
> > worker.list=ajp12, ajp13
> > worker.ajp13.port=8009
> > worker.ajp13.host=localhost
> > worker.ajp13.type=ajp13
> > worker.loadbalancer.balanced_workers=ajp12, ajp13
> >
> > Hope this helps.
> >
> > ----- Original Message -----
> > From: "Erki Kriks" <er...@eer.ee>
> > To: "Tomcat Users List" <to...@jakarta.apache.org>
> > Sent: Thursday, March 20, 2003 9:49 AM
> > Subject: mod_jk.conf and ajp13
> >
> >
> > > Hello!
> > >
> > > I want to use ajp13 (not ajp12).
> > > I'm using Windows 2000 server and tomcat 3.2.1
> > > I have declared into mod_jk.conf following lines:
> > >
> > > LoadModule jk_module modules/mod_jk.dll
> > > <IfModule mod_jk.c>
> > > JkWorkersFile <fill-path-to>/workers.properties
> > > JkLogFile logs/jk.log
> > > JkLogLevel warn
> > > JkMount /*.jsp ajp13
> > > JkMount /servlet/* ajp13
> > > JkMount /examples/* ajp13
> > > </IfModule>
> > >
> > > But when tomcat is started then i can see in mod_jk.conf-auto
following
> > > lines:
> > > ...
> > > JkMount /*.jsp ajp12
> > >
> > > JkMount /servlet/* ajp12
> > >
> > > ....
> > >
> > > JkMount /examples/servlet/* ajp12
> > >
> > > JkMount /examples/*.jsp ajp12
> > >
> > >
> > >
> > > How it is possible? I declared ajp13??
> > >
> > > Many thanx!
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: mod_jk.conf and ajp13
Posted by Erki Kriks <er...@eer.ee>.
Hi!
Thank you for your help!
I have the same configuration.
But why are you using "worker.list=ajp12, ajp13" instead of
"worker.list=ajp13 ", while ajp13 is only required?
It's very interesting, all auto-configuration files includes only ajp12
(instead of ajp13)?
But nowhere ajp12 is declared, only ajp13 is used :-)
> Hello,
> did you uncommented the following lines in server.xml?
>
>
> <!-- Apache AJP13 support. This is also used to shut down tomcat.
> -->
> <Connector className="org.apache.tomcat.service.PoolTcpConnector">
> <Parameter name="handler"
>
value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/>
> <Parameter name="port" value="8009"/>
> </Connector>
>
> and your workers.properties has something similar to the following lines:
>
> worker.list=ajp12, ajp13
> worker.ajp13.port=8009
> worker.ajp13.host=localhost
> worker.ajp13.type=ajp13
> worker.loadbalancer.balanced_workers=ajp12, ajp13
>
> Hope this helps.
>
> ----- Original Message -----
> From: "Erki Kriks" <er...@eer.ee>
> To: "Tomcat Users List" <to...@jakarta.apache.org>
> Sent: Thursday, March 20, 2003 9:49 AM
> Subject: mod_jk.conf and ajp13
>
>
> > Hello!
> >
> > I want to use ajp13 (not ajp12).
> > I'm using Windows 2000 server and tomcat 3.2.1
> > I have declared into mod_jk.conf following lines:
> >
> > LoadModule jk_module modules/mod_jk.dll
> > <IfModule mod_jk.c>
> > JkWorkersFile <fill-path-to>/workers.properties
> > JkLogFile logs/jk.log
> > JkLogLevel warn
> > JkMount /*.jsp ajp13
> > JkMount /servlet/* ajp13
> > JkMount /examples/* ajp13
> > </IfModule>
> >
> > But when tomcat is started then i can see in mod_jk.conf-auto following
> > lines:
> > ...
> > JkMount /*.jsp ajp12
> >
> > JkMount /servlet/* ajp12
> >
> > ....
> >
> > JkMount /examples/servlet/* ajp12
> >
> > JkMount /examples/*.jsp ajp12
> >
> >
> >
> > How it is possible? I declared ajp13??
> >
> > Many thanx!
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: mod_jk.conf and ajp13
Posted by tito santini <ti...@netikos.com>.
Hello,
did you uncommented the following lines in server.xml?
<!-- Apache AJP13 support. This is also used to shut down tomcat.
-->
<Connector className="org.apache.tomcat.service.PoolTcpConnector">
<Parameter name="handler"
value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/>
<Parameter name="port" value="8009"/>
</Connector>
and your workers.properties has something similar to the following lines:
worker.list=ajp12, ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.loadbalancer.balanced_workers=ajp12, ajp13
Hope this helps.
----- Original Message -----
From: "Erki Kriks" <er...@eer.ee>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Thursday, March 20, 2003 9:49 AM
Subject: mod_jk.conf and ajp13
> Hello!
>
> I want to use ajp13 (not ajp12).
> I'm using Windows 2000 server and tomcat 3.2.1
> I have declared into mod_jk.conf following lines:
>
> LoadModule jk_module modules/mod_jk.dll
> <IfModule mod_jk.c>
> JkWorkersFile <fill-path-to>/workers.properties
> JkLogFile logs/jk.log
> JkLogLevel warn
> JkMount /*.jsp ajp13
> JkMount /servlet/* ajp13
> JkMount /examples/* ajp13
> </IfModule>
>
> But when tomcat is started then i can see in mod_jk.conf-auto following
> lines:
> ...
> JkMount /*.jsp ajp12
>
> JkMount /servlet/* ajp12
>
> ....
>
> JkMount /examples/servlet/* ajp12
>
> JkMount /examples/*.jsp ajp12
>
>
>
> How it is possible? I declared ajp13??
>
> Many thanx!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org