I'd leave the mod_jk setup you have as is, and use host matchers in cocoon to handle requests from there, assuming that at some point you'll want www.domain.com to be handled differently than foo.domain.com, or www.otherdomain.com.
I'm using the following setup with success: 1) (You may not want to do this step) I changed the Tomcat Root Context in server.xml following the instructions found at: http://xml.apache.org/cocoon/faq/faq-configure-environment.html#faq-1 2) Add the WildCardHostMatcher (or regexp version) by adding a declaration similar to the following in your root sitemap: <map:matcher name="host" src="org.apache.cocoon.matching.WildcardHostMatcher" logger="sitemap.matcher.host"/> 3) Mount your application in a sub sitemap, matched on the host from the root sitemap. I'm currently using: <map:match type="host" pattern="*.com:8080"> <map:mount check-reload="yes" src="{1}/" uri-prefix=""/> </map:match> Note, I'm not (yet) using mod_jk to pass requests from port 80. If you use that, you'll need to get rid of the :8080 in the above example, and if you skip step one above you may need to play with the value of uri-prefix. I haven't thought that through very carefully for your situation. I can say that the above three steps exactly are working in my case. When you resolve this with mod_jk can you be sure to summarize this to the list? Also, in your example below you mention accessing http://domain:8009/cocoon/domain - wouldn't this be :8080 to the outside world? I'm pretty sure 8009 is just what apache uses internally to pass requests on, though it's been a while and this has gotten fuzzy in my mind. Geoff Howard --- "Marc G. Fournier" <[EMAIL PROTECTED]> wrote: > > Okay, as suggested, I replaced mod_webapp with > mod_jk2, and if I go to > http://domain now, it comes up with an error to the > effect of: > > Cocoon 2 - Resource not found > > In my httpd.conf file, I have: > > # Configure mod_jk > # > JkWorkersFile > /usr/local/jakarta-tomcat4.1.10/conf/jk/workers.properties > JkLogFile /var/www/mod_jk.log > JkLogLevel info > > where workers.properties just contains: > > =============== > workers.tomcat_home=/usr/local/jakarta-tomcat4.1.10 > workers.java_home=/usr/local/jdk1.3.1 > ps=/ > worker.list=ajp12, ajp13 > > # Definition for Ajp13 worker > # > worker.ajp13.port=8009 > worker.ajp13.host=localhost > worker.ajp13.type=ajp13 > ================ > > Now, in my VirtualHost directive for the domain, I > have: > > JkMount / ajp13 > > which is obviously wrong ... but what should it be? > > Basically, what I want, is for: > > http://domain to "connect" to > http://domain:8009/cocoon/domain > > and use the sub-sitemap.xmap file properly ... but > this is all new to me > :( > > Again, if there is a good how to on this that I > should be reading, please > point me to it ... > > Thanks ... > > > > --------------------------------------------------------------------- > Please check that your question has not already > been answered in the > FAQ before posting. > <http://xml.apache.org/cocoon/faq/index.html> > > To unsubscribe, e-mail: > <[EMAIL PROTECTED]> > For additional commands, e-mail: > <[EMAIL PROTECTED]> > __________________________________________________ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>