You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Apache Wiki <wi...@apache.org> on 2005/04/14 21:15:52 UTC
[Lenya Wiki] Update of "HowToModProxy" by JannForrer
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Lenya Wiki" for change notification.
The following page has been changed by JannForrer:
http://wiki.apache.org/lenya/HowToModProxy
------------------------------------------------------------------------------
The {{{org.apache.lenya.cms.cocoon.transformation.LinkRewritingTransformer}}} class enables a flexible way of proxy configuration. It is possible to define a proxy for each area / SSL combination. The proxy configuration happens in {{{$PUBLICATION/config/publication.xconf}}}. You also have to setup the frontend apache webserver accordingly. Otherwise you will end up with only dead links.
- The usecase which is the basis for this How-To is described in more detail in the Configuration section.
+ There are two usecases described in this How-To: A very simple setup and a more complex one:
== Configuration ==
- The publication.xconf of the default publication looks as follows:
+ If you install lenya, a publication.xconf of the default publication looks as follows:
{{{
<publication>
<languages>
@@ -14, +14 @@
<path-mapper>org.apache.lenya.cms.publication.DefaultDocumentIdToPathMapper</path-mapper>
<document-builder>org.apache.lenya.cms.publication.DefaultDocumentBuilder</document-builder>
<breadcrumb-prefix/>
-
+ <link-attribute xpath="//*[namespace-uri() = 'http://www.w3.org/1999/xhtml']/@href"/>
<!--
<proxy area="live" ssl="true" url="https://www.host.com/ssl/default"/>
<proxy area="live" ssl="false" url="http://www.host.com/default"/>
@@ -24, +24 @@
</publication>
}}}
- i.e no proxy is configured and lenya URL's work "out of the box".
+ i.e no proxy is configured and lenya URL's work "out of the box".
+
+ === Simple setup ===
+ If you just want to map your live site to a host having URL's like www.host.com you should first define a proxy like:
+ {{{
+ <proxy area="live" ssl="false" url="http://www.host.com"/>
+ }}}
+
A possible configuration for two servers (an authoring server and a live server) may look like:
{{{
<publication>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org