Hello Christopher,

Since I do not want to touch my current site, I created 
xml.mydomain.com(virtual domain) and changed the DocumentRoot to the Hello 
example dir. 

The problem is when I go to that site , I get the listing of file under the 
directory

index.xml
WEB-INF  ...

rather than translated index.xml.

My concern is, how do I tell apache whenever it comes across *.xml send it to 
tomcat(ultimately to Cocoon 2)

Thanks,
Sundar


On Wednesday 06 June 2001 07:43, [EMAIL PROTECTED] wrote:
> Sundar,
>
> there are probably multiple ways to approach this.  I think you can change
> the "docBase" in the Context for your app in Tomcat's server.xml
> configuration file to point to your document root.  Alternately, you can
> point Apache's DocumentRoot to your context.  For instance, if your Cocoon
> application is in a directory /opt/tomcat/webapps/cocoon, you can edit
> Apache's httpd.conf and change DocumentRoot to be
> /opt/tomcat/webapps/cocoon.  We've done this successfully.  I can't
> remember if we had to modify the mod_jk-auto.conf to do it.  If you end up
> having to modify that file, I suggest you take it out of Tomcat's directory
> and put it in with the Apache conf files, rename it to mod_jk.conf, and
> maintain it yourself.
>
> Before doing anything like this, though, I recommend getting familiar with
> Apache's documentation on configuring Apache (particularly about
> DocumentRoot, Directory, etc.) and Tomcat's documentation on configuring
> Tomcat contexts.
>
> -Christopher
>
>
>
>
> Please respond to [EMAIL PROTECTED]
>
> To:   [EMAIL PROTECTED]
> cc:
>
> Subject:  Adding root context to cocoon samples
>
>
> Hello,
>
> Probably, its been answered so many times but I couldn't find it in the
> archives. So, following is my question.
>
> I am able to successfully put cocoon2 samples in my Apache+Tomcat
> configuration and able to access under www.mydomain.com/cocoon by adding
> /cocoon context in mod_jk-auto.conf
>
> But I am having trouble adding root context to a cocoon sample application
> --
> Hello World.
>
> That is when I key in 'www.mydomain.com', I want the web server to serve
> hello application(index.xml) (For that matter any cocoon application)
>
> Any help is appreciated.
>
> Sundar
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>

-- 
Sundar Narayanasamy
Fourthstage Technologies
3030 North Third Street, 7th Floor
Phoenix, AZ 85012

Office - 602-776-0883 ext.222
Email  - [EMAIL PROTECTED]

http://www.fourthstage.com


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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

Reply via email to