Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

Question about mod_ajp and mod_jk ProxyPassReverse

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


Chuck.Payne at TravelChannel

Nov 17, 2009, 7:21 AM

Post #1 of 7 (801 views)
Permalink
Question about mod_ajp and mod_jk ProxyPassReverse

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

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

CATCH IT | travelchannel.com

Need IT help? Go to http://Keystoneweb.corp.cox.com
Or contact us at Support [at] TravelChannel / 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.

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 [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


m.watts at eris

Nov 17, 2009, 7:30 AM

Post #2 of 7 (742 views)
Permalink
Re: Question about mod_ajp and mod_jk ProxyPassReverse [In reply to]

On Tue, 2009-11-17 at 10:21 -0500, Chuck.Payne [at] TravelChannel 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
Attachments: signature.asc (0.19 KB)


tevans.uk at googlemail

Nov 17, 2009, 7:34 AM

Post #3 of 7 (740 views)
Permalink
Re: Question about mod_ajp and mod_jk ProxyPassReverse [In reply to]

On Tue, Nov 17, 2009 at 3:21 PM, <Chuck.Payne [at] travelchannel> 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
>
>
> <Proxy balancer://potapp>
> 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
> </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 /travelchannel/ balancer://potapp/travelchannel/
ProxyPassReverse /travelchannel/ balancer://potapp/travelchannel/

Cheers

Tom


Chuck.Payne at TravelChannel

Nov 17, 2009, 8:39 AM

Post #4 of 7 (768 views)
Permalink
RE: Question about mod_ajp and mod_jk ProxyPassReverse [In reply to]

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 [at] travelchannel

CATCH IT | travelchannel.com

Need IT help? Go to http://Keystoneweb.corp.cox.com
Or contact us at Support [at] TravelChannel / 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 [at] eris]
Sent: Tuesday, November 17, 2009 10:30 AM
To: users [at] httpd
Subject: Re: [users [at] http] Question about mod_ajp and mod_jk ProxyPassReverse

On Tue, 2009-11-17 at 10:21 -0500, Chuck.Payne [at] TravelChannel 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 [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


daniel.goulder at and

Nov 17, 2009, 8:59 AM

Post #5 of 7 (748 views)
Permalink
RE: Question about mod_ajp and mod_jk ProxyPassReverse [In reply to]

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/apache.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: <Chuck.Payne [at] TravelChannel>
[mailto:<Chuck.Payne [at] TravelChannel>]
Sent: 17 November 2009 16:40
To: users [at] httpd
Subject: RE: [users [at] http] 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 [at] travelchannel

CATCH IT | travelchannel.com

Need IT help? Go to http://Keystoneweb.corp.cox.com
Or contact us at Support [at] TravelChannel / 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 [at] eris]
Sent: Tuesday, November 17, 2009 10:30 AM
To: users [at] httpd
Subject: Re: [users [at] http] Question about mod_ajp and mod_jk
ProxyPassReverse

On Tue, 2009-11-17 at 10:21 -0500, Chuck.Payne [at] TravelChannel 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 [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


______________________________________________________________________
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 <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


peter.schober at univie

Nov 17, 2009, 2:54 PM

Post #6 of 7 (718 views)
Permalink
Re: Question about mod_ajp and mod_jk ProxyPassReverse [In reply to]

chuck,

* Chuck.Payne [at] TravelChannel <Chuck.Payne [at] TravelChannel> [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 [at] jakarta/msg60479.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 [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


peter.schober at univie

Nov 20, 2009, 4:56 AM

Post #7 of 7 (691 views)
Permalink
Re: Question about mod_ajp and mod_jk ProxyPassReverse [In reply to]

chuck,

* Peter Schober <peter.schober [at] univie> [2009-11-17 23:54]:
> * Chuck.Payne [at] TravelChannel <Chuck.Payne [at] TravelChannel> [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 <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.