I am trying to direct files with .jsp extensions to tomcat. Otherwise I want apache to serve the file directly (no tomcat). Currently I have a test.jsp which is supposed to create an HTML page with the current date in the body. Instead when I go to that .jsp I see the JK Status Manager. The mod_jk.logs only show, init_jk::mod_jk.c (3365): mod_jk/1.2.35 initialized.

I have tomcat and apache setup on my server. Apache runs on 80 and tomcat runs on 8080. localhost:8080 show the tomcat welcome page. I downloaded tomcat-connectors-1.2.35-windows-i386-httpd-2.2.x and copied the mod_jk.so to C:\apache\modules.

Then I added LoadModule jk_module modules/mod_jk.so to my httpd.conf. I restart apache and the module loads just fine.

Next I downloaded the mod_jk source to get the workers.properties file. I copy workers.properties to C:\apache\confg. Then I added this user,

Sorry, but it's still not clear what exactly you're asking. You want to know the next step? You're encountering an error? Specific error at startup? Can you provide the log section with error? IMHO, mod_proxy_ajp is much easier to configure and work with than mod_jk.
–
Jason HuntleyMar 28 '12 at 19:38

@JasonHuntley Sorry it's not clear. I'll update the first part of my question to explain that better. Part of the reason I want to use mod_proxy is to learn all its complexities
–
sissonbMar 28 '12 at 19:49

1 Answer
1

You are pretty close on your config, there are just a few things that are off.

First, AJP does not run over port 8080, by default it runs over port 8009. It's a different connector. You can verify which port AJP is setup for by looking at your server.xml file for a line that looks like this:

<Connector port="8009" redirectPort="8443" protocol="AJP/1.3"/>

So you'll want to change your worker.ajp13.port=8080 directive to worker.ajp13.port=8009

Automatically Alias webapp context directories into the Apache document space.
Care should be taken to ensure that only static content is served via httpd as a result of using this directive. Any static content served by httpd will bypass any security constraints defined in the application's web.xml.
For inheritance rules, see: JkMountCopy.
There is no default value.