Question about mod_ajp and mod_jk ProxyPassReverse

Question about mod_ajp and mod_jk ProxyPassReverse

am 17.11.2009 16:21:58 von chuck.payne

Guys,

We are switching out mod_ajp for mod_jk and have ran into a wall with Prox=
yPass and ProxyPassReverse.

With mod_ajp we have this setting



BalancerMember ajp://tomcat05:8009 smax=3D20 min=3D0 max=3D10 loadfactor=
=3D1 flushpackets=3Don route=3Dnode1
BalancerMember ajp://tomcat06:8009 smax=3D20 min=3D0 max=3D10 loadfactor=
=3D1 flushpackets=3Don route=3Dnode1



ProxyPass /travelchannel balancer://potapp/travelchannel/
ProxyPassReverse /travelchannel balancer://potapp/travelchannel/

ProxyPass /travel balancer://potapp/travel/
ProxyPassReverse /travel balancer://potapp/travel/

ProxyPass /AppConsole balancer://potapp/AppConsole/
ProxyPassReverse /AppConsole balancer://potapp/AppConsole/


When we try to use these setting that work with mod_ajp, we get a 404 with =
mod_jk. I have no clue. Do I need to do something different with ProxyPass/=
ProxyPassReverse? I been seaching the net with no luck.

CHUCK PAYNE | Unix System Administrator

TRAVEL CHANNEL MEDIA
3700 Mansell Rd, Suite 500
Alpharetta, GA 30022
Office: 404-269-5533
Blackberry: 770-940-7765
email:chuck.payne@travelchannel.com

CATCH IT | travelchannel.com

Need IT help? Go to http://Keystoneweb.corp.cox.com
Or contact us at Support@TravelChannel.com / 301-244-7777
Cox Communications Help Desk (24 X 7 X 365): 800-637-3545
------------------------------------
This e-mail and any attachments are intended only for the person to whom (o=
r entity to which) it is addressed and may contain confidential and/or priv=
ileged material. Any review, re-transmission, copying, dissemination or oth=
er use of this information by persons or entities other than the intended r=
ecipient is prohibited. If you received this in error, please contact the s=
ender and delete the material from any computer. The contents of this messa=
ge may contain personal views that are not the views of The Travel Channel,=
L.L.C.

TRAVEL BUG EFFECT: Strong Attraction to Haunted Places
Ghost Adventures, Fridays at 9PM E/P
CATCH IT | travelchannel.com

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: Question about mod_ajp and mod_jkProxyPassReverse

am 17.11.2009 16:30:55 von Mark Watts

--=-f+42D+0KvsTllwtZzx25
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Tue, 2009-11-17 at 10:21 -0500, Chuck.Payne@TravelChannel.com wrote:
> Guys,
>=20
> We are switching out mod_ajp for mod_jk and have ran into a wall with Pr=
oxyPass and ProxyPassReverse.

Most people ditch mod_jk for mod_proxy_ajp.
Care to elaborate as to why mod_proxy_ajp isn't working for you?

Mark.

--=20
Mark Watts BSc RHCE MBCS
Senior Systems Engineer, Managed Services Manpower
www.QinetiQ.com
QinetiQ - Delivering customer-focused solutions
GPG Key: http://www.linux-corner.info/mwatts.gpg

--=-f+42D+0KvsTllwtZzx25
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEABECAAYFAksCwa8ACgkQBn4EFUVUIO0fIwCg4sqyuJyTflmn8/RE4cGw 4bOa
jUYAnRhbZWvX3zDGiBAVpvQPviG1PY/A
=GX8t
-----END PGP SIGNATURE-----

--=-f+42D+0KvsTllwtZzx25--

Re: Question about mod_ajp and mod_jk ProxyPassReverse

am 17.11.2009 16:34:01 von Tom Evans

--0015174015c0f9969d047892da11
Content-Type: text/plain; charset=UTF-8

On Tue, Nov 17, 2009 at 3:21 PM, wrote:

> Guys,
>
> We are switching out mod_ajp for mod_jk and have ran into a wall with
> ProxyPass and ProxyPassReverse.
>
> With mod_ajp we have this setting
>
>
>
> BalancerMember ajp://tomcat05:8009 smax=20 min=0 max=10 loadfactor=1
> flushpackets=on route=node1
> BalancerMember ajp://tomcat06:8009 smax=20 min=0 max=10 loadfactor=1
> flushpackets=on route=node1
>

>
>
> ProxyPass /travelchannel balancer://potapp/travelchannel/
> ProxyPassReverse /travelchannel balancer://potapp/travelchannel/
>
> ProxyPass /travel balancer://potapp/travel/
> ProxyPassReverse /travel balancer://potapp/travel/
>
> ProxyPass /AppConsole balancer://potapp/AppConsole/
> ProxyPassReverse /AppConsole balancer://potapp/AppConsole/
>
>
> When we try to use these setting that work with mod_ajp, we get a 404 with
> mod_jk. I have no clue. Do I need to do something different with
> ProxyPass/ProxyPassReverse? I been seaching the net with no luck.
>
> CHUCK PAYNE | Unix System Administrator
>
>
You need to make sure that your URLs are balanced - if the URL you are
passing ends in a slash, then the URL you are passing it to must also, and
vice versa.

Eg,

ProxyPass /travelchannel/ balancer://potapp/travelchannel/
ProxyPassReverse /travelchannel/ balancer://potapp/travelchannel/

Cheers

Tom

--0015174015c0f9969d047892da11
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Tue, Nov 17, 2009 at 3:21 PM, tr"><Chuck.Payne@travel=
channel.com
>
wrote:
e=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; =
padding-left: 1ex;">
Guys,



We are switching out mod_ajp for mod_jk and have ran into a wall  with=
ProxyPass and ProxyPassReverse.



With mod_ajp we have this setting





<Proxy balancer://potapp>

  BalancerMember ajp://tomcat05:8009 smax=3D20 min=3D0 max=3D10 loadf=
actor=3D1 flushpackets=3Don route=3Dnode1

  BalancerMember ajp://tomcat06:8009 smax=3D20 min=3D0 max=3D10 loadf=
actor=3D1 flushpackets=3Don route=3Dnode1

</Proxy>





 ProxyPass /travelchannel balancer://potapp/travelchannel/

  ProxyPassReverse /travelchannel balancer://potapp/travelchannel/ >


  ProxyPass /travel balancer://potapp/travel/

  ProxyPassReverse /travel balancer://potapp/travel/



  ProxyPass /AppConsole balancer://potapp/AppConsole/

  ProxyPassReverse /AppConsole balancer://potapp/AppConsole/





When we try to use these setting that work with mod_ajp, we get a 404 with =
mod_jk. I have no clue. Do I need to do something different with ProxyPass/=
ProxyPassReverse? I been seaching the net with no luck.



CHUCK PAYNE |  Unix System Administrator



You need to make sure that your URLs are balanced=
- if the URL you are passing ends in a slash, then the URL you are passing=
it to must also, and vice versa.

Eg,

ProxyPass=
             =C2=
=A0 /travelchannel/   balancer://potapp/travelchannel/

ProxyPassReverse /travelchannel/    balancer://potapp/travelchann=
el/

Cheers

Tom


--0015174015c0f9969d047892da11--

RE: Question about mod_ajp and mod_jk ProxyPassReverse

am 17.11.2009 17:39:44 von chuck.payne

Because we are running productions, as stated on the Apache site in BOLD le=
tters, mod_ajp is not for production use. We see our jboss down with it.

CHUCK PAYNE | Unix System Administrator

TRAVEL CHANNEL MEDIA
3700 Mansell Rd, Suite 500
Alpharetta, GA 30022
Office: 404-269-5533
Blackberry: 770-940-7765
email:chuck.payne@travelchannel.com

CATCH IT | travelchannel.com

Need IT help? Go to http://Keystoneweb.corp.cox.com
Or contact us at Support@TravelChannel.com / 301-244-7777
Cox Communications Help Desk (24 X 7 X 365): 800-637-3545
------------------------------------
This e-mail and any attachments are intended only for the person to whom (o=
r entity to which) it is addressed and may contain confidential and/or priv=
ileged material. Any review, re-transmission, copying, dissemination or oth=
er use of this information by persons or entities other than the intended r=
ecipient is prohibited. If you received this in error, please contact the s=
ender and delete the material from any computer. The contents of this messa=
ge may contain personal views that are not the views of The Travel Channel,=
L.L.C.
________________________________________
From: Mark Watts [m.watts@eris.qinetiq.com]
Sent: Tuesday, November 17, 2009 10:30 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Question about mod_ajp and mod_jk ProxyPassRever=
se

On Tue, 2009-11-17 at 10:21 -0500, Chuck.Payne@TravelChannel.com wrote:
> Guys,
>
> We are switching out mod_ajp for mod_jk and have ran into a wall with Pr=
oxyPass and ProxyPassReverse.

Most people ditch mod_jk for mod_proxy_ajp.
Care to elaborate as to why mod_proxy_ajp isn't working for you?

Mark.

--
Mark Watts BSc RHCE MBCS
Senior Systems Engineer, Managed Services Manpower
www.QinetiQ.com
QinetiQ - Delivering customer-focused solutions
GPG Key: http://www.linux-corner.info/mwatts.gpg

TRAVEL BUG EFFECT: Strong Attraction to Haunted Places
Ghost Adventures, Fridays at 9PM E/P
CATCH IT | travelchannel.com

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: Question about mod_ajp and mod_jk ProxyPassReverse

am 17.11.2009 17:59:41 von daniel.goulder

I agree with Chuck here - would definitely NOT use mod_proxy_ajp in
production and would ALWAYS use mod_jk

Back to the original question - have a look at
http://tomcat.apache.org/connectors-doc/reference/printer/ap ache.html - in
particular the "JkOptions +ForwardURICompat " part.

I think this will allow you to do mod_rewrite in combination with mod_jk -
I must say I have never done this myself but it should be possible...

Danny

________________________________

From:
[mailto:]
Sent: 17 November 2009 16:40
To: users@httpd.apache.org
Subject: RE: [users@httpd] Question about mod_ajp and mod_jk
ProxyPassReverse


Because we are running productions, as stated on the Apache site in BOLD
letters, mod_ajp is not for production use. We see our jboss down with it.

CHUCK PAYNE | Unix System Administrator

TRAVEL CHANNEL MEDIA
3700 Mansell Rd, Suite 500
Alpharetta, GA 30022
Office: 404-269-5533
Blackberry: 770-940-7765
email:chuck.payne@travelchannel.com

CATCH IT | travelchannel.com

Need IT help? Go to http://Keystoneweb.corp.cox.com
Or contact us at Support@TravelChannel.com / 301-244-7777
Cox Communications Help Desk (24 X 7 X 365): 800-637-3545
------------------------------------
This e-mail and any attachments are intended only for the person to whom
(or entity to which) it is addressed and may contain confidential and/or
privileged material. Any review, re-transmission, copying, dissemination or
other use of this information by persons or entities other than the
intended recipient is prohibited. If you received this in error, please
contact the sender and delete the material from any computer. The contents
of this message may contain personal views that are not the views of The
Travel Channel, L.L.C.
________________________________________
From: Mark Watts [m.watts@eris.qinetiq.com]
Sent: Tuesday, November 17, 2009 10:30 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Question about mod_ajp and mod_jk
ProxyPassReverse

On Tue, 2009-11-17 at 10:21 -0500, Chuck.Payne@TravelChannel.com wrote:
> Guys,
>
> We are switching out mod_ajp for mod_jk and have ran into a wall with
ProxyPass and ProxyPassReverse.

Most people ditch mod_jk for mod_proxy_ajp.
Care to elaborate as to why mod_proxy_ajp isn't working for you?

Mark.

--
Mark Watts BSc RHCE MBCS
Senior Systems Engineer, Managed Services Manpower
www.QinetiQ.com
QinetiQ - Delivering customer-focused solutions
GPG Key: http://www.linux-corner.info/mwatts.gpg

TRAVEL BUG EFFECT: Strong Attraction to Haunted Places
Ghost Adventures, Fridays at 9PM E/P
CATCH IT | travelchannel.com

------------------------------------------------------------ ---------
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


____________________________________________________________ __________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
____________________________________________________________ __________



____________________________________________________________ __________
This e-mail and any attached files are intended for the named addressee only. It contains information, which may be confidential and legally privileged and also protected by copyright. Unless you are the named addressee (or authorised to receive for the addressee) you may not copy or use it, or disclose it to anyone else. If you received it in error please notify the sender immediately and then delete it from your system. Please be advised that the views and opinions expressed in this e-mail may not reflect the views and opinions of Associated Newspapers Limited or any of its subsidiary companies. We make every effort to keep our network free from viruses. However, you do need to check this e-mail and any attachments to it for viruses as we can take no responsibility for any computer virus
which may be transferred by way of this e-mail. Use of this or any other e-mail facility signifies consent to any interception we might lawfully carry out to prevent abuse of these faciliti
es.
Associated Newspapers Ltd. Registered Office: Northcliffe House, 2 Derry St, Kensington, London, W8 5TT. Registered No 84121 England.

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: Question about mod_ajp and mod_jk

am 17.11.2009 23:54:13 von Peter Schober

chuck,

* Chuck.Payne@TravelChannel.com [2009-11-17 17:42]:
> Because we are running productions, as stated on the Apache site in
> BOLD letters, mod_ajp is not for production use. We see our jboss
> down with it.

I see a few references to mod_ajp from 2004 (e.g. in this thread[1])
but I guess you're referring to mod_proxy_ajp here?

Where is that statement to be found? The obvious place
http://httpd.apache.org/docs/2.2/en/mod/mod_proxy_ajp.html did not
feature such a note. Also
http://wiki.apache.org/tomcat/FAQ/Connectors#Q2 didn't say that.
Since a quick search didn't turn up something, I'd appreciate a
pointer.

cheers,
-peter

[1] http://www.mail-archive.com/tomcat-dev@jakarta.apache.org/ms g60479.html

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: Question about mod_ajp and mod_jk

am 20.11.2009 13:56:34 von Peter Schober

chuck,

* Peter Schober [2009-11-17 23:54]:
> * Chuck.Payne@TravelChannel.com [2009-11-17 17:42]:
> > Because we are running productions, as stated on the Apache site in
> > BOLD letters, mod_ajp is not for production use. We see our jboss
> > down with it.
>
> I see a few references to mod_ajp from 2004 (e.g. in this thread[1])
> but I guess you're referring to mod_proxy_ajp here?
>
> Where is that statement to be found? The obvious place
> http://httpd.apache.org/docs/2.2/en/mod/mod_proxy_ajp.html did not
> feature such a note. Also
> http://wiki.apache.org/tomcat/FAQ/Connectors#Q2 didn't say that.
> Since a quick search didn't turn up something, I'd appreciate a
> pointer.

I'd still like to know where on "the Apache site" this statement is to
be found, exactly.
Thanks,
-peter

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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