You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Melanie Pfefer <me...@yahoo.co.uk> on 2008/04/02 15:10:55 UTC
[users@httpd] mod_jk
Can someone give me a hand please to install mod_jk on
apache?
I downloaded the connector and build it on Solaris
./configure --with-apxs=/usr/local/apache2/bin/apxs
make
./libtool --finish /usr/local/apache2/modules
make install
I then added to httpd.conf:
LoadModule jk_module modules/mod_jk.so
JkWorkersFile
/usr/local/apache2/conf/workers.properties
JkLogFile "logs/mod_jk.log"
JkLogLevel debug
JkMount /*TRE* MyWorker
And created a new file workers.properties
workers.java_home=/usr/local/java/jdk1.6.0_03/
ps=/
worker.list=MyWorker
worker.MxWorker.port=8080
worker.MxWorker.host=backend
worker.MxWorker.type=ajp13
Anything else is needed?
__________________________________________________________
Sent from Yahoo! Mail.
A Smarter Inbox http://uk.docs.yahoo.com/nowyoucan.html
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] mod_jk
Posted by Eqbal Z <eq...@gmail.com>.
I am fairly apache config myself, so this may not be the best way, but
depending on your version of apache, you can use mod_proxy_ajp instead of
mod_jk in combination with mod_rewrite and add a rewrite rule, something
like
RewriteRule /*TRE* ajp://localhost:8009/gqaf-web/%{REQUEST_URI} [P]
That is something I have done. But I suspect rewrite may work in conjunction
with mod_jk as well, I am not sure how though.
Thanks.
On Wed, Apr 2, 2008 at 12:05 PM, Melanie Pfefer <me...@yahoo.co.uk>
wrote:
> Thanks.
>
> In my current configuration I put:
> JkMount /*TRE* MyWorker
>
> Meaning that for URLs that have *TRE*, it goes to the
> tomcat server.
> However, I want to append /gqaf-web/ before the *TRE*
> how to do that?
>
> Current setting:
>
> http://proxy/gqaf:soi:PAR:TRE:0000001
> is directed to
> http://backend:8080/gqaf:soi:PAR:TRE:0000001
>
> which does not exist
>
> It should be
>
> http://backend:8080/gqaf-web/gqaf:soi:PAR:TRE:0000001
>
> thanks
> --- "John P. Dodge" <do...@cruciate.ca.boeing.com>
> wrote:
>
> > On Wed, 2 Apr 2008, Melanie Pfefer wrote:
> >
> > > Can someone give me a hand please to install
> > mod_jk on
> > > apache?
> > >
> > > I downloaded the connector and build it on Solaris
> > >
> > > ./configure
> > --with-apxs=/usr/local/apache2/bin/apxs
> > > make
> > > ./libtool --finish /usr/local/apache2/modules
> > > make install
> > >
> > >
> > > I then added to httpd.conf:
> > > LoadModule jk_module modules/mod_jk.so
> > > JkWorkersFile
> > > /usr/local/apache2/conf/workers.properties
> > > JkLogFile "logs/mod_jk.log"
> > > JkLogLevel debug
> > > JkMount /*TRE* MyWorker
> > >
> > >
> > >
> > > And created a new file workers.properties
> > > workers.java_home=/usr/local/java/jdk1.6.0_03/
> > > ps=/
> > > worker.list=MyWorker
> > >
> > > worker.MxWorker.port=8080
> > > worker.MxWorker.host=backend
> > > worker.MxWorker.type=ajp13
> > >
> > >
> > > Anything else is needed?
> > >
> > You don't need these lines in the workers.properties
> > they're ancient:
> >
> > workers.java_home=/usr/local/java/jdk1.6.0_03/
> > ps=/
> >
> > Are you really running the AJP listener in Tomcat on
> > port 8080. Typically
> > it runs on 8009.
> >
> > The port needs to match the definition for the
> > Coyote AJP listener in the
> > Tomcat server.xml file.
> >
> >
> > ----------------------------------------
> > "Mon aéroglisseur est plein d'anguilles"
> > John P. Dodge
> > Boeing Shared Services
> >
> >
> >
> ---------------------------------------------------------------------
> > The official User-To-User support forum of the
> > Apache HTTP Server Project.
> > See <URL:http://httpd.apache.org/userslist.html> for
> > more info.
> > To unsubscribe, e-mail:
> > users-unsubscribe@httpd.apache.org
> > " from the digest:
> > users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail:
> > users-help@httpd.apache.org
> >
> >
>
>
>
> ___________________________________________________________
> Yahoo! For Good helps you make a difference
>
> http://uk.promotions.yahoo.com/forgood/
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
Re: [users@httpd] mod_jk
Posted by Melanie Pfefer <me...@yahoo.co.uk>.
Thanks.
In my current configuration I put:
JkMount /*TRE* MyWorker
Meaning that for URLs that have *TRE*, it goes to the
tomcat server.
However, I want to append /gqaf-web/ before the *TRE*
how to do that?
Current setting:
http://proxy/gqaf:soi:PAR:TRE:0000001
is directed to
http://backend:8080/gqaf:soi:PAR:TRE:0000001
which does not exist
It should be
http://backend:8080/gqaf-web/gqaf:soi:PAR:TRE:0000001
thanks
--- "John P. Dodge" <do...@cruciate.ca.boeing.com>
wrote:
> On Wed, 2 Apr 2008, Melanie Pfefer wrote:
>
> > Can someone give me a hand please to install
> mod_jk on
> > apache?
> >
> > I downloaded the connector and build it on Solaris
> >
> > ./configure
> --with-apxs=/usr/local/apache2/bin/apxs
> > make
> > ./libtool --finish /usr/local/apache2/modules
> > make install
> >
> >
> > I then added to httpd.conf:
> > LoadModule jk_module modules/mod_jk.so
> > JkWorkersFile
> > /usr/local/apache2/conf/workers.properties
> > JkLogFile "logs/mod_jk.log"
> > JkLogLevel debug
> > JkMount /*TRE* MyWorker
> >
> >
> >
> > And created a new file workers.properties
> > workers.java_home=/usr/local/java/jdk1.6.0_03/
> > ps=/
> > worker.list=MyWorker
> >
> > worker.MxWorker.port=8080
> > worker.MxWorker.host=backend
> > worker.MxWorker.type=ajp13
> >
> >
> > Anything else is needed?
> >
> You don't need these lines in the workers.properties
> they're ancient:
>
> workers.java_home=/usr/local/java/jdk1.6.0_03/
> ps=/
>
> Are you really running the AJP listener in Tomcat on
> port 8080. Typically
> it runs on 8009.
>
> The port needs to match the definition for the
> Coyote AJP listener in the
> Tomcat server.xml file.
>
>
> ----------------------------------------
> "Mon aéroglisseur est plein d'anguilles"
> John P. Dodge
> Boeing Shared Services
>
>
>
---------------------------------------------------------------------
> The official User-To-User support forum of the
> Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for
> more info.
> To unsubscribe, e-mail:
> users-unsubscribe@httpd.apache.org
> " from the digest:
> users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail:
> users-help@httpd.apache.org
>
>
___________________________________________________________
Yahoo! For Good helps you make a difference
http://uk.promotions.yahoo.com/forgood/
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] mod_jk
Posted by "John P. Dodge" <do...@cruciate.ca.boeing.com>.
On Wed, 2 Apr 2008, Melanie Pfefer wrote:
> Can someone give me a hand please to install mod_jk on
> apache?
>
> I downloaded the connector and build it on Solaris
>
> ./configure --with-apxs=/usr/local/apache2/bin/apxs
> make
> ./libtool --finish /usr/local/apache2/modules
> make install
>
>
> I then added to httpd.conf:
> LoadModule jk_module modules/mod_jk.so
> JkWorkersFile
> /usr/local/apache2/conf/workers.properties
> JkLogFile "logs/mod_jk.log"
> JkLogLevel debug
> JkMount /*TRE* MyWorker
>
>
>
> And created a new file workers.properties
> workers.java_home=/usr/local/java/jdk1.6.0_03/
> ps=/
> worker.list=MyWorker
>
> worker.MxWorker.port=8080
> worker.MxWorker.host=backend
> worker.MxWorker.type=ajp13
>
>
> Anything else is needed?
>
You don't need these lines in the workers.properties they're ancient:
workers.java_home=/usr/local/java/jdk1.6.0_03/
ps=/
Are you really running the AJP listener in Tomcat on port 8080. Typically
it runs on 8009.
The port needs to match the definition for the Coyote AJP listener in the
Tomcat server.xml file.
----------------------------------------
"Mon aéroglisseur est plein d'anguilles"
John P. Dodge
Boeing Shared Services
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org