Re: mod_jk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <melanie_pfefer@xxxxxxxxxxx> 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" <dodge@xxxxxxxxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxxxxxx
>    "   from the digest:
> users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail:
> users-help@xxxxxxxxxxxxxxxx
>
>



     ___________________________________________________________
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux