-
1. Re: How to configure Apache HTTP Server 2.0.42 to communicat
dangreen Oct 22, 2002 3:05 PM (in response to alexspetty)How would your configuration change if you were to use Apache 1.3.26 instead of 2.0.42?
-
2. Re: How to configure Apache HTTP Server 2.0.42 to communicat
alexspetty Oct 23, 2002 6:51 PM (in response to alexspetty)You would need to use an AJP connector specific to what ever version of apache httpd you wanted to use.
-Alex -
3. Re: How to configure Apache HTTP Server 2.0.42 to communicat
alexspetty Oct 23, 2002 6:58 PM (in response to alexspetty)just in case you don't know:
AJP Connector = mod_jk.dll
as of 10/23/02 you can get the 1.3.26 and 2.0.42 ajp13 connectora at:
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0/bin/win32/
goodluck! -
4. Re: How to configure Apache HTTP Server 2.0.42 to communicat
skim13 Nov 6, 2002 12:13 PM (in response to alexspetty)i just wanted to say "thank you" for this how-to.
i've been spinning on this for a couple of days,
and this is exactly what i needed.
is there a way to get this included with the distro?
thanks again,
sam -
5. Re: How to configure Apache HTTP Server 2.0.42 to communicat
alexspetty Nov 13, 2002 10:50 AM (in response to alexspetty)you are very welcome. thanks for your kinds words.
:)
i will shortly be posting another how-to with updates and instructions for some other configurations.
-alex -
6. Re: How to configure Apache HTTP Server 2.0.42 to communicat
jwkaltz Nov 14, 2002 1:13 PM (in response to alexspetty)hi people,
as an addition here's how to build the tomcat connector for Apache 2 under Unix
(in Unix you're building an "so" library, shared object, instead of a DLL)
First, don't download the jakarta-tomcat-connectors-4.1.12-src.zip stuff which is in the same tomcat directory as the tomcat release on jakarta.apache.org/tomcat
I had a hard-time getting that one even to compile.
Instead, get the Tomcat Connectors project under
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release
I tried the 1.2.0 one
To generate the library:
1.gunzip -c jakarta-tomcat-connectors-jk-1.2.0-src.tar.gz | tar xf -
2.cd jakarta-tomcat-connectors-jk-1.2.0-src/
3.cd jk/native
4../configure –with-apxs=<your-path-to-apache>/bin/apxs
5.make
6.cp apache-2.0/mod_jk.so <your-path-to-apache>/modules/
Now you've generated the library.
Configuration:
the configuration is not really platform dependent, just check the names you're using; for example the module is called mod_jk.so and not mod_jk.dll
This is all the info I have for now regarding Apache 2, so no mails please.
Alex, feel free to use in your future how-tos if you wish.
hi people,
as an addition here's how to build the tomcat connector for Apache 2 under Unix
(in Unix you're building an "so" library, shared object, instead of a DLL)
First, don't download the jakarta-tomcat-connectors-4.1.12-src.zip stuff which is in the same tomcat directory as the tomcat release on jakarta.apache.org/tomcat
I had a hard-time getting that one even to compile.
Instead, get the Tomcat Connectors project under
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release
I tried the 1.2.0 one
To generate the library:
1.gunzip -c jakarta-tomcat-connectors-jk-1.2.0-src.tar.gz | tar xf -
2.cd jakarta-tomcat-connectors-jk-1.2.0-src/
3.cd jk/native
4../configure –with-apxs=<your-path-to-apache>/bin/apxs
5.make
6.cp apache-2.0/mod_jk.so <your-path-to-apache>/modules/
Now you've generated the library.
Configuration:
the configuration is not really platform dependent, just check the names you're using; for example the module is called mod_jk.so and not mod_jk.dll
This is all the info I have for now regarding Apache 2, so no mails please.
Alex, feel free to use in your future how-tos if you wish. -
7. Re: How to configure Apache HTTP Server 2.0.42 to communicat
manojkithany Nov 18, 2002 1:17 PM (in response to alexspetty)Hi JBosses and Mr. Alex:
Thanks for sharing this information.
However, do you know what changes would I have to make - to make it work for my IBM AIX System,,,?
I am using JBoss 3.0 (with Tomcat), with Apache 1.3.27 on my IBM AIX box.
THANKS! -
8. Re: How to configure Apache HTTP Server 2.0.42 to communicat
klerpold Nov 19, 2002 6:38 AM (in response to alexspetty)How to configure Apache HTTP Server 2.0.42/43 to communicate with JBoss-Tomcat 3.0.3/4 using the module mod_jk2 instead of mod_jk.
-
9. Re: How to configure Apache HTTP Server 2.0.42 to communicat
dancornell Nov 20, 2002 1:16 AM (in response to alexspetty)Excellent document - thanks for putting this together.
juha asked me to repost two other Tomcat performance tips that are often set sub-optimally in default Tomcat and Tomcat/JBoss installs. Original thread in the Performance Tuning forum is <http://www.jboss.org/modules/bb/index.html?module=bb&op=viewtopic&t=forums/ basic thing you might want to check would be the Tomcat configuration. Out of the box the settings don't support that much of a load. Try tweaking the minProcessors, maxProcessors, and acceptCount properties in the tomcat-service.xml file. I've forgotten to tweak those before and JBoss/Tomcat starts tripping all over itself way before it ought to.
Just as a general Good Idea (TM) set enableLookups to false. Doing all the reverse lookups is a huge bottleneck that you don't want to bother with. Might not be affecting you if you're on a local network with a single load client, but down the line...
Thanks,
Dan -
10. Re: How to configure Apache HTTP Server 2.0.42 to communicat
steff Dec 6, 2002 2:12 AM (in response to alexspetty)Hi
I have read and done exactly as the How-to document says - except that I use different paths for installation. I have changed the places in the files where the paths' are directly referenced. ( I think ;-) )
http://localhost and http://localhost:8080 goes fine.
When I try http://localhost/servlet/test.html and http://localhost/test.jsp to test the connection to Tomcat, i get an error response from Apache (not from Tomcat). There is not much to see in the logs, except for in jk.logs where there is a line saying something like "error connecting to tomcat".
What can I have done wrong?
The only thing that I can think of myself is, that I use Apache 2.0.43 but only mod_jk.dll for 2.0.42. The text at the place where I downloaded my mod_jk.dll said, that it would also work for Apache 2.0.43, but maby they were wrong???
(Is there a place I can download either Apache 2.0.42 or mod_jk.dll for 2.0.43)
Any other suggestions?
Thanx -
11. Re: How to configure Apache HTTP Server 2.0.42 to communicat
erik777 Dec 6, 2002 5:42 AM (in response to alexspetty)You got further than me with 2.0.43 and the mod_jk for 2.0.42. I got the following error when trying to start Apache (using command prompt to see error):
Cannot load C:/Program Files/Apache Group/Apache2/modules/mod_jk.dll into server: The specified procedure could not be found. -
12. Re: How to configure Apache HTTP Server 2.0.42 to communicat
erik777 Dec 6, 2002 6:19 AM (in response to alexspetty)I found mod_jk-2.0.43.dll at:
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.1/bin/win32/
but it still gave the same error about not finding the specified procedure. I get this even when the only line is:
LoadModule jk_module modules/mod_jk.dll
and it goes away when I remark this line. -
13. Re: How to configure Apache HTTP Server 2.0.42 to communicat
steff Dec 6, 2002 10:32 AM (in response to alexspetty)Have you remembered to rename mod_jk-2-0-43.dll to mod_jk.dll?
-
14. Re: How to configure Apache HTTP Server 2.0.42 to communicat
erik777 Dec 6, 2002 12:01 PM (in response to alexspetty)Yeah, I got it working. I was a stupid error. Deployed to wrong Apache instance. But still needed the 2.0.43, cuz one that's one of my instances.