Do you know if there is anything that explains the syntax of JkUriSet?

This shows how to set a worker, but I still need to tell it what context to hook to. The way I read this is /ccpd is a directory that apache maps as http://ccpd.foo.edu/ccpd

<Location "/ccpd">
  JkUriSet worker ajp13:localhost:8009
</Location>


Thanks


--Rick


Quinton McCombs wrote:




-----Original Message-----
From: Richard Anderson [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2003 6:11 PM
To: Tomcat List
Subject: mod_jk2 logic check




I have apache 2.0.43 and tomcat 4.1.24. I've set up mod_jk2.

Here is my understanding of how things should work. I need this logic double check.

My webapp is locate in "webapps/ccpd"

I restart tomcat and/or tomcat automaticly finds the webapp "ccpd" and maps a default contect to it.

context="/ccpd"

In the apache2 httpd2.conf file the following is inserted:

###Load mod_jk2 and relate file
LoadModule jk2_module modules/mod_jk2.so
Include /etc/httpd2/conf/jk2.properties



No. You do not include the jk2.properties file into your httpd.conf file. As long as your jk2.properties file is found under ${serverRoot}/conf, it will read it. You can manually set the location of the config file and a few other directives using the JkSet directive.



I also set the virtual host up so apache recognizes it.


From there I configure the workers2.properties file:


[uri:ccpd.foo.edu/*]
info=ccpd
context=/ccpd


From what I understand now that i have set these all in place. Everything now should work just fine. Anything that runs off of ccpd.foo.edu will not map directly to my tomcat4 context.



I could not figure out what context and servlet path were meant to be used for. It did not seem to matter what combinations I tried, I could not seem to map servlet requests to a virtual host in jk2.properties. I was able to use the JkUriSet directive in httpd.conf to perform the mapping. You might run into a problem here if you have multiple virtual hosts mapping the same path...

In your virtual host configuration, you do something like this:
<Location "/ccpd">
  JkUriSet worker ajp13:localhost:8009
</Location>



Is this correct? Maybe the problem is elsewhere. What's the best way to diagnose this?

Thanks you for help.

--Rick



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to