cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Wilkes <>
Subject Re: how can i get static files REALLY been processed by apache ???
Date Thu, 13 Feb 2003 18:03:55 GMT
Fixing the top posting a little bit...

> >Here's what I did, its just for the images but you could extend it to
> >anything:
> >
> >Create a new website called "" in your
> >httpd.conf file.  Here's some snippets of my Apache2 one:
> >	<VirtualHost>
> >     ServerName
> >     # this all goes to cocoon, but need a docroot anyway
> >     DocumentRoot /usr/local/www/data/example
> >     # send all these requests to the coyote connector
> >     JkMount /* cocoon
> >   </VirtualHost>
> >   <VirtualHost>
> >     ServerName
> >     DocumentRoot /usr/local/www/data/example
> >   </VirtualHost>
> >So now when a request comes in you'll have Apache handle it differently
> >for "www" vs "images"
> >
> >Its not that elegant to have references to
> >"" but hey, it gets the job
> >done.  You can tell cocoon to throw in the "static" a href for you so it
> >wouldn't be that much work.
On Thu, Feb 13, 2003 at 06:46:52PM +0100, SAXESS - Hussayn Dabbous wrote:
> Hy,
> Your last comment sounds very promising.
> How could i let cocoon throw in the "static" refs ???
> Wouldn't that mean i need cocoon to find the hrefs and
> do some replacement stuff there. Or how would i do that?
> any pointers to howto, docs or so ?

My needs were pretty simple where I wanted to have some standard images
on a page so I included it in the XSLT to make the webpage.  Not sure if
that's the correct way of doing it, in fact I'm a little concerned that I
might be using XSLTs in a way that they shouldn't be used:

  <xsl:template match="topmiddle">
    <xsl:comment> Horizontal guides </xsl:comment>
    <img src=""</img>
    <img src=""></img>

You might be able to workup some sort of "<xsl: if text" clause to
manipulate the {link} reference to go to the static page.


Please check that your question  has not already been answered in the
FAQ before posting.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message