You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Robert J. Lebowitz" <le...@finaltouch.com> on 2001/11/13 04:24:31 UTC

Configuration for virtual hosts using Apache 1.3.x, Tomcat 4 and Cocoon 2

I've been experimenting with mod_app but haven't had much luck getting the
virtual host thing to work.  I'm storing my web apps outside the tomcat
webapps directory for both domains.

I'm running Apache 1.3.x, and want to be able to transparently redirect any
requests to http://myhost1.com/ and http://myhost2.com/ to port 8080
(actually, the default in the latest release is 8180 in spite of what the
literature says) for each host respectively.

I'd like to see examples for modifications to httpd.conf, server.xml and any
of the cocoon 2 configuration files to achieve this.  Can anyone help out
here??

Rob


---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: hdml

Posted by David Rosenstrauch <da...@dti.net>.
Don't put the content inside CDATA.


DR


At 04:14 PM 12/20/01 +0530, you wrote:
>Hi
>
>Currently i am working in cocoon technologies. I am  writing a stylesheet
>for hdml with putting contents inside CDATA.  But the problem here is if
>characters like "<" or ">"  comes in xml the textformatter will send it as
>it is without giving entity reference like "&lt;".
>
>Can anybody suggest me what i have to do for that??
>
>waiting for reply
>
>Thanx with rgds
>Santhosh hegde A
>
>
>---------------------------------------------------------------------
>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: <co...@xml.apache.org>
>For additional commands, e-mail: <co...@xml.apache.org> 


---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


hdml

Posted by santhosh hegde <sa...@eximsoft.com>.
Hi

Currently i am working in cocoon technologies. I am  writing a stylesheet
for hdml with putting contents inside CDATA.  But the problem here is if
characters like "<" or ">"  comes in xml the textformatter will send it as
it is without giving entity reference like "&lt;".

Can anybody suggest me what i have to do for that??

waiting for reply

Thanx with rgds
Santhosh hegde A


---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Dummy proof XML on-line editing

Posted by Mauricio Souza Lima <ma...@terra.com.br>.
Tomas Espeleta wrote:
> 
> > A different approach i'm working with, is XML editing with a application
> > using the WebDAV interface to edit the database that have the xml
> > contents... With this, i think i get the power of an application, that
> > hasn't the limits a web-form has...
> 
> Cool! How do you use web-dav? Apache+mod_dav? Which client?
> 

I use Tomcat4, it has WebDAV support.
The Client is the Explorer on windows. All the users of my site works in
it...

-- 
Mauricio Souza Lima
Rational Consulting
mauriciosl@terra.com.br
Rua Helena, 140 / cj. 82
São Paulo - SP - Brazil
Fone / Direct: +55 11 3842-7138

---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Dummy proof XML on-line editing

Posted by Tomas Espeleta <to...@digival.es>.
> A different approach i'm working with, is XML editing with a application
> using the WebDAV interface to edit the database that have the xml
> contents... With this, i think i get the power of an application, that
> hasn't the limits a web-form has...

Cool! How do you use web-dav? Apache+mod_dav? Which client?

> Tomas Espeleta wrote:
> >
> > > To complement the Cocoon framework and to give the customer access to
the
> > > site navigation and the content of his pages, I would like to add an
> > > on-line XML editor to a Cocoon project.
> > > I want to present the content of the XML file in a HTML form, so that
the
> > > owner of the site can modify, add or delete the actual textual
> > > content.  XML validation must be done on the server, but will hardly
be
> > > necessary since the structure of the XML file is managed by the
editor.
> > >
> > > Has anybody any idea if there are any tools to achieve this?
Preferably
> > in
> > > open source.
> > >
> > > Thanks,
> > > Bert
> >
> > I'm actually using JTidy (http://lempinen.net/sami/jtidy/), converting
input
> > from form to XML fragment, and putting it into a DB...
> > I'm interested on differents approachs...
> > ;-)
> >
> > - Tomas
> >
> > ---------------------------------------------------------------------
> > 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: <co...@xml.apache.org>
> > For additional commands, e-mail: <co...@xml.apache.org>
>
> --
> Mauricio Souza Lima
> Rational Consulting
> mauriciosl@terra.com.br
> Rua Helena, 140 / cj. 82
> São Paulo - SP - Brazil
> Fone / Direct: +55 11 3842-7138
>
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>


---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Dummy proof XML on-line editing

Posted by Bert Van Kets <be...@visitronics.be>.
That's an option I considered too.  But as Mauricio already knows it's not 
usable on my project since the editing will be done by a lot of people on 
very different places.  that's why I'm going the browser way.
Bert
At 08:37 20/12/2001 -0200, you wrote:
>A different approach i'm working with, is XML editing with a application
>using the WebDAV interface to edit the database that have the xml
>contents... With this, i think i get the power of an application, that
>hasn't the limits a web-form has...
>
>Tomas Espeleta wrote:
> >
> > > To complement the Cocoon framework and to give the customer access to the
> > > site navigation and the content of his pages, I would like to add an
> > > on-line XML editor to a Cocoon project.
> > > I want to present the content of the XML file in a HTML form, so that the
> > > owner of the site can modify, add or delete the actual textual
> > > content.  XML validation must be done on the server, but will hardly be
> > > necessary since the structure of the XML file is managed by the editor.
> > >
> > > Has anybody any idea if there are any tools to achieve this?  Preferably
> > in
> > > open source.
> > >
> > > Thanks,
> > > Bert
> >
> > I'm actually using JTidy (http://lempinen.net/sami/jtidy/), converting 
> input
> > from form to XML fragment, and putting it into a DB...
> > I'm interested on differents approachs...
> > ;-)
> >
> > - Tomas
> >
> > ---------------------------------------------------------------------
> > 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: <co...@xml.apache.org>
> > For additional commands, e-mail: <co...@xml.apache.org>
>
>--
>Mauricio Souza Lima
>Rational Consulting
>mauriciosl@terra.com.br
>Rua Helena, 140 / cj. 82
>São Paulo - SP - Brazil
>Fone / Direct: +55 11 3842-7138
>
>---------------------------------------------------------------------
>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: <co...@xml.apache.org>
>For additional commands, e-mail: <co...@xml.apache.org>


---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Dummy proof XML on-line editing

Posted by Mauricio Souza Lima <ma...@terra.com.br>.
A different approach i'm working with, is XML editing with a application
using the WebDAV interface to edit the database that have the xml
contents... With this, i think i get the power of an application, that
hasn't the limits a web-form has...

Tomas Espeleta wrote:
> 
> > To complement the Cocoon framework and to give the customer access to the
> > site navigation and the content of his pages, I would like to add an
> > on-line XML editor to a Cocoon project.
> > I want to present the content of the XML file in a HTML form, so that the
> > owner of the site can modify, add or delete the actual textual
> > content.  XML validation must be done on the server, but will hardly be
> > necessary since the structure of the XML file is managed by the editor.
> >
> > Has anybody any idea if there are any tools to achieve this?  Preferably
> in
> > open source.
> >
> > Thanks,
> > Bert
> 
> I'm actually using JTidy (http://lempinen.net/sami/jtidy/), converting input
> from form to XML fragment, and putting it into a DB...
> I'm interested on differents approachs...
> ;-)
> 
> - Tomas
> 
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
 
-- 
Mauricio Souza Lima
Rational Consulting
mauriciosl@terra.com.br
Rua Helena, 140 / cj. 82
São Paulo - SP - Brazil
Fone / Direct: +55 11 3842-7138

---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Dummy proof XML on-line editing

Posted by Tomas Espeleta <to...@digival.es>.
> To complement the Cocoon framework and to give the customer access to the
> site navigation and the content of his pages, I would like to add an
> on-line XML editor to a Cocoon project.
> I want to present the content of the XML file in a HTML form, so that the
> owner of the site can modify, add or delete the actual textual
> content.  XML validation must be done on the server, but will hardly be
> necessary since the structure of the XML file is managed by the editor.
>
> Has anybody any idea if there are any tools to achieve this?  Preferably
in
> open source.
>
> Thanks,
> Bert

I'm actually using JTidy (http://lempinen.net/sami/jtidy/), converting input
from form to XML fragment, and putting it into a DB...
I'm interested on differents approachs...
;-)

- Tomas


---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Dummy proof XML on-line editing

Posted by Bert Van Kets <be...@visitronics.be>.
To complement the Cocoon framework and to give the customer access to the 
site navigation and the content of his pages, I would like to add an 
on-line XML editor to a Cocoon project.
I want to present the content of the XML file in a HTML form, so that the 
owner of the site can modify, add or delete the actual textual 
content.  XML validation must be done on the server, but will hardly be 
necessary since the structure of the XML file is managed by the editor.

Has anybody any idea if there are any tools to achieve this?  Preferably in 
open source.

Thanks,
Bert


---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Configuration for virtual hosts using Apache 1.3.x, Tomcat 4 and Cocoon 2

Posted by "Robert J. Lebowitz" <le...@finaltouch.com>.
Okay... I figured this out myself after a little experimentation, and
reading more of the notes in the tomcat and cocoon archives.  One of the
more confusing aspects of all this is the way that the mod_webapp works.

In your httpd.conf file (Apache), you need to add the following two
sections:

ServerName site1.mydomain.com
Port 80
WebAppConnection cx warp localhost:8008
WebAppDeploy /path/to/site1/documents  cx  /

<VirtualHost site2.mydomain.com>
   ServerName site2.mydomain.com
   Port 80
   WebAppConnection cx0 warp localhost:8008
   WebAppDeploy /path/to/site2/documents cx0 /
</VirtualHost>

In your server.xml file (Tomcat), you need to add the following snippets in
the <Engine>..</Engine> segment:

<Host name="site1.mydomain.com" debug="0" appBase="webapps">

    <Logger className="org.apache.catalina.logger.FileLogger"
        prefix="site1." suffix=".log" timestamp="true"/>
    <Context path="" docBase="/path/to/site1/documents" debug="0"
reloadable="true" />

</Host>

<Host name="site2.mydomain.com" debug="0" appBase="webapps">

    <Logger className="org.apache.catalina.logger.FileLogger"
        prefix="site2." suffix=".log" timestamp="true"/>
    <Context path="" docBase="/path/to/site2/documents" debug="0"
reloadable="true" />

</Host>

Don't forget to install the mod_webapp module and be sure to fire up tomcat
first, then the apache httpd so that the warp connector has something to
"connect to".

Rob




---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>