Hi, Let me explain what I have, Tomcat is installed in /var/tomcat4/ Cocoon is installed in /var/tomcat4/webapps/cocoon/ and main cocoon sitemap is in /var/tomcat4/webapps/cocoon/sitemap.xmap
I have now installed apache 2.0.48 and enabled all modules. It is in /usr/local/apache/ DocumentRoot for my website is in /usr/local/apache/domain.net/htdocs/ I can access tomcat by doing. http://203.xxx.xxx.yyy:8180 and cocoon by doing http://203.xxx.xxx.yyy:8180/cocoon They are all working! But I can't access http://203.122.59.60:8180/cocoon/domain.net !!! How do I configure this?? Sitemap.xmap in entry /var/tomcat4/webapps/cocoon/sitemap.xmap under pipelines for domain.net is <map:match pattern="*.net/**"> <map:mount uri-prefix="{1}.net" src="/usr/local/apache2/{1}.net/htdocs/sitemap.xmap" check-reload="yes"/> </map:match> This is my virtualhost configuration in apache. <VirtualHost 203.xxx.xxx.yyy:80> <Directory /usr/local/apache2/domain.net/htdocs> Options -Indexes order allow,deny allow from all </Directory> ServerAdmin [EMAIL PROTECTED] DocumentRoot /usr/local/apache2/domain.net/htdocs ServerName www.domain.net ServerAlias domain.net www.domain.net ErrorLog /usr/local/apache2/logs/error_log CustomLog /usr/local/apache2/logs/access_log combined <Location /WEB-INF> Order deny,allow Deny from all </Location> #static content is served from apache #ProxyPass /media/ ! #ProxyPass /stats/ ! #ProxyPass /images/ ! #ProxyPass /themes/images/ ! #all the rest are passed to cocoon ProxyPass / http://203.xxx.xxx.yyy:8180/cocoon/domain.net/ ProxyPassReverse / http://203.xxx.xxx.yyy:8180/cocoon/domain.net/ ProxyErrorOverride On </VirtualHost> regards, Krishna Krishna Shekhar, RHCE Network/Systems Engineer spectranet http://www.spectranet.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, December 14, 2003 3:28 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Configuring Cocoon with Apache and TomCat http://wiki.cocoondev.org/Wiki.jsp?page=VirtualHost this works for us check first if your webapp work asking content directly form tomcat http://......:8008/examples/test.xml (maybe) --stavros On Sat, 13 Dec 2003, Krishna wrote: > Hi, > > I have installed Tomcat (tomcat4-4.0.1-1) , Cocoon-2.1 and > Apache_1.3.23. The installation of these packages went fine. > Tomcat configuration files are in /var/tomcat4, Cocoon in > /var/tomcat4/webapps/cocoon/ and Apache in /usr/local/apache > > This is my VirtualHost directive > <VirtualHost 203.xxx.xxx.yyy> > ServerAdmin [EMAIL PROTECTED] > DocumentRoot /usr/local/apache/htdocs > ServerName www.domain.net > WebAppConnection conn warp localhost:8008 > WebAppDeploy examples conn /examples/ > </VirtualHost> > > so, If I access http://203.xxx.xxx.yyy/examples/ , I can see the files > placed under /var/tomcat4/webapps/examples and the servlets are > executing. > However when I made a test xml page it does not execute? > > Any idea? how I should configure it so that everything works under the > DocumentRoot /usr/local/apache/htdocs/ ....for both xml and jsp pages! > > > regards, > Krishna > > Krishna Shekhar, RHCE > Network/Systems Engineer > Spectranet > http://www.spectranet.com > > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.550 / Virus Database: 342 - Release Date: 12/9/2003 > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.550 / Virus Database: 342 - Release Date: 12/9/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.550 / Virus Database: 342 - Release Date: 12/9/2003 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
