logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: Apache 2.2 Tomcat 5.5 now needs mod_proxy_ajp
Author
SMc



Joined: 12 Feb 2006
Posts: 17
Location: Chelmsford, UK

PostPosted: Thu 23 Feb '06 21:16    Post subject: Apache 2.2 Tomcat 5.5 now needs mod_proxy_ajp Reply with quote

Hi,

My server setup was working perfectly with Apache 2.0.55 and mod_jk.

I upgraded to Apache 2.2 Then the mod_jk no longer worked. I read it is now necessary to use mod_proxy_ajp instead.

However, trawl as I may, I can find no support for the configuration of this setup. I have cobbled together the best I can, but I cannot get Tomcat to serve any pages at all.

Any friends out their that would care to share the necessary snippets of the apache and tomcat configuration files to set up Tomcat under Apache

Much appreciated !

SMc


Last edited by SMc on Fri 24 Feb '06 11:15; edited 1 time in total
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Fri 24 Feb '06 0:10    Post subject: Reply with quote

Indeed in the Apache docu no clue to configure it.

Did you try ?

ProxyPass / ajp://mydomain.com/

Steffen
Back to top
SMc



Joined: 12 Feb 2006
Posts: 17
Location: Chelmsford, UK

PostPosted: Fri 24 Feb '06 0:29    Post subject: Reply with quote

Yep, miserable failure I'm afraid. There must be something I am missing.

I have spent too much time on it already !

I have switched strategy back to serving direct from Tomcat. I believe I can set up virtual hosts under Tomcat.

I have got so much to do that I cant afford to battle it out. I will wait until the support for Apache 2.2 catches up with the release...

If it is this tricky to find out the basics, god knows what would happen if I was live and something blew up....!

SMc (Pathetic Quitter!)
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Fri 24 Feb '06 0:44    Post subject: Reply with quote

Why not use:

ProxyPass /xxx http://127.0.0.1:81/xxx
ProxyPassReverse /xxx http://127.0.0.1:81/xxx

(tomcat running on port 81 in this example)

Steffen
Back to top
SMc



Joined: 12 Feb 2006
Posts: 17
Location: Chelmsford, UK

PostPosted: Fri 24 Feb '06 11:13    Post subject: Reply with quote

...well I read that using the http proxy was very slow compared to using ajp, and that it would be quicker to use Tomcat directly.....

Most of my site is generated by JSP and servlets so if I do want to run Tomcat under Apache HTTP then it has to be done in the most effiecient way. Mod_jk seemed to work pretty well....
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Fri 24 Feb '06 12:20    Post subject: Reply with quote

You can download mod_jk 1.2.15 for 2.2.0 at : Removed .

Steffen
Back to top
SMc



Joined: 12 Feb 2006
Posts: 17
Location: Chelmsford, UK

PostPosted: Fri 24 Feb '06 13:11    Post subject: Reply with quote

..thanks Steffen,

...that looks useful. I will substitute that in for the mod_jk 2.0.55 and see if it works with the same workers property file...


Regards,

SMc
Back to top


Reply to topic   Topic: Apache 2.2 Tomcat 5.5 now needs mod_proxy_ajp View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules