You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Derek Odegard <de...@schwa.com> on 2001/01/24 16:40:53 UTC

apache + tomcat + cocoon = almost working

After a couple of days of work, I finally have Apache 1.3.14, Tomcat 3.2,
and Cocoon 1.8 working together, but there's one final problem that I can't
seem to get my brain around.

The configuration example I used showed how to get cocoon handling requested
XML docs at a specified path (e.g., "/cocoon"), which is how I have my
development server set up now. What I want, though, is for Cocoon to handle
all requests for ".xml" on the entire server (or virtual server), while
leaving everything else up to Apache/Tomcat. I'm sure it's a simple problem,
but my brain is accustomed to solving IIS problems, which seems to be no
help when it comes to solving Apache problems.

Below is the relevant portion of my tomcat.conf file. I would be VERY
grateful for advice on how I can get this working.

--Derek
  derek@schwa.com
  http://www.pixelpony.com/


<snip file="tomcat.conf">

Alias /examples E:/jakarta-tomcat/webapps/examples
<Directory "E:/jakarta-tomcat/webapps/examples">
	Options Indexes FollowSymLinks
</Directory>

<Location /examples/WEB-INF>
	AllowOverride None
	deny from all
</Location>

<LocationMatch /examples/*.jsp>
	SetHandler jserv-servlet
</LocationMatch>

ApJServMount /examples/servlet /examples
ApJServMount /admin/servlet /admin
ApJServMount /servlet /ROOT

Alias /cocoon $TOMCAT_HOME/webapps/pixelpony
<Directory "$TOMCAT_HOME/webapps/pixelpony">
	Options Indexes FollowSymLinks
</Directory>
ApJServMount /pixelpony /pixelpony
AddType text/xml .xml
AddHandler jserv-servlet .xml
<Location /pixelpony/WEB-INF/ >
	AllowOverride None
	deny from all
</Location>


</snip>