You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by gr...@apache.org on 2005/01/03 04:42:16 UTC

svn commit: r123934 - /lenya/site/docs/1_2_x/components/deployment/proxying.html

Author: gregor
Date: Sun Jan  2 19:42:15 2005
New Revision: 123934

URL: http://svn.apache.org/viewcvs?view=rev&rev=123934
Log:
Updated site with latest documentation changes and removed eol-style
Added:
   lenya/site/docs/1_2_x/components/deployment/proxying.html

Added: lenya/site/docs/1_2_x/components/deployment/proxying.html
Url: http://svn.apache.org/viewcvs/lenya/site/docs/1_2_x/components/deployment/proxying.html?view=auto&rev=123934
==============================================================================
--- (empty file)
+++ lenya/site/docs/1_2_x/components/deployment/proxying.html	Sun Jan  2 19:42:15 2005
@@ -0,0 +1,651 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<meta content="Apache Forrest" name="Generator">
+<meta name="Forrest-version" content="0.6">
+<meta name="Forrest-skin-name" content="pelt">
+<title>Reverse Proxying Apache Lenya</title>
+<link type="text/css" href="../../../../skin/basic.css" rel="stylesheet">
+<link media="screen" type="text/css" href="../../../../skin/screen.css" rel="stylesheet">
+<link media="print" type="text/css" href="../../../../skin/print.css" rel="stylesheet">
+<link type="text/css" href="../../../../skin/profile.css" rel="stylesheet">
+<script src="../../../../skin/getBlank.js" language="javascript" type="text/javascript"></script><script src="../../../../skin/getMenu.js" language="javascript" type="text/javascript"></script><script src="../../../../skin/fontsize.js" language="javascript" type="text/javascript"></script>
+<link rel="shortcut icon" href="../../../../favicon.ico">
+</head>
+<body onload="init()">
+<script type="text/javascript">ndeSetTextSize();</script>
+<div id="top">
+<!--+
+    |breadtrail
+    +-->
+<div class="breadtrail">
+<a href="http://www.apache.org/">apache</a> &gt; <a href="http://lenya.apache.org/">lenya</a><script src="../../../../skin/breadcrumbs.js" language="JavaScript" type="text/javascript"></script>
+</div>
+<!--+
+    |header
+    +-->
+<div class="header">
+<!--+
+    |start group logo
+    +-->
+<div class="grouplogo">
+<a href="http://lenya.apache.org"><img class="logoImage" alt="Lenya" src="../../../../images/apache-lenya-light.png" title="
+  	Apache Lenya is a Java-based Open-Source Content Management System.
+  	It is based on open standards such as XML and XSLT.
+  	One of its core components is Cocoon from the Apache Software Foundation.
+  "></a>
+</div>
+<!--+
+    |end group logo
+    +-->
+<!--+
+    |start Project Logo
+    +-->
+<div class="projectlogo">
+<a href=""></a>
+</div>
+<!--+
+    |end Project Logo
+    +-->
+<!--+
+    |start Search
+    +-->
+<div class="searchbox">
+<form action="http://www.google.com/search" method="get" class="roundtopsmall">
+<input value="lenya.apache.org" name="sitesearch" type="hidden"><input onFocus="getBlank (this, 'Search the site with :');" value="Search the site with :" size="25" name="q" id="query" type="text">&nbsp; 
+                    <input name="Search" value="Search" type="submit">
+</form>
+</div>
+<!--+
+    |end search
+    +-->
+<!--+
+    |start Tabs
+    +-->
+<ul id="tabs">
+<li>
+<a class="base-not-selected" href="../../../../index.html">Project</a>
+</li>
+<li>
+<a class="base-not-selected" href="../../../../installation/index.html">Installation</a>
+</li>
+<li class="current">
+<a class="base-selected" href="../../../../docs/index.html">Documentation</a>
+</li>
+<li>
+<a class="base-not-selected" href="../../../../community/index.html">Community</a>
+</li>
+</ul>
+<!--+
+    |end Tabs
+    +-->
+</div>
+</div>
+<div id="main">
+<div id="publishedStrip">
+<!--+
+    |start Subtabs
+    +-->
+<div id="level2tabs"></div>
+<!--+
+    |end Endtabs
+    +-->
+<script type="text/javascript" language="JavaScript"><!--
+              document.write("Published: " + document.lastModified);
+              //  --></script>
+</div>
+<!--+
+    |breadtrail
+    +-->
+<div class="breadtrail">
+             
+             &nbsp;
+           </div>
+<!--+
+    |start Menu, mainarea
+    +-->
+<!--+
+    |start Menu
+    +-->
+<div id="menu">
+<div onclick="SwitchMenu('menu_selected_1.1', '../../../../skin/')" id="menu_selected_1.1Title" class="menutitle" style="background-image: url('../../../../skin/images/chapter_open.gif');">Documentation</div>
+<div id="menu_selected_1.1" class="selectedmenuitemgroup" style="display: block;">
+<div class="menuitem">
+<a title="" href="../../../../docs/index.html">Documentation</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docu.pdf">pdf docu 1.2.x (whole)</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docu.html">html docu 1.2.x (whole)</a>
+</div>
+<div onclick="SwitchMenu('menu_selected_1.1.4', '../../../../skin/')" id="menu_selected_1.1.4Title" class="menutitle" style="background-image: url('../../../../skin/images/chapter_open.gif');">1.2.x</div>
+<div id="menu_selected_1.1.4" class="selectedmenuitemgroup" style="display: block;">
+<div onclick="SwitchMenu('menu_selected_1.1.4.1', '../../../../skin/')" id="menu_selected_1.1.4.1Title" class="menutitle" style="background-image: url('../../../../skin/images/chapter_open.gif');">Components</div>
+<div id="menu_selected_1.1.4.1" class="selectedmenuitemgroup" style="display: block;">
+<div onclick="SwitchMenu('menu_1.1.4.1.1', '../../../../skin/')" id="menu_1.1.4.1.1Title" class="menutitle">Access&nbsp;Control</div>
+<div id="menu_1.1.4.1.1" class="menuitemgroup">
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/accesscontrol/terms.html">Basic Terms</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/accesscontrol/accesscontrollers.html">Access&nbsp;Controllers</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/accesscontrol/accesscontrollerresolvers.html">Access Controller Resolvers</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/accesscontrol/authenticators.html">Authenticators</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/accesscontrol/authorizers.html">Authorizers</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/accesscontrol/policymanagers.html">Policies and Policy&nbsp;Managers</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/accesscontrol/accreditablemanagers.html">Accreditable&nbsp;Managers</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/accesscontrol/ssl.html">SSL Encryption</a>
+</div>
+</div>
+<div onclick="SwitchMenu('menu_selected_1.1.4.1.2', '../../../../skin/')" id="menu_selected_1.1.4.1.2Title" class="menutitle" style="background-image: url('../../../../skin/images/chapter_open.gif');">Deployment</div>
+<div id="menu_selected_1.1.4.1.2" class="selectedmenuitemgroup" style="display: block;">
+<div class="menupage">
+<div class="menupagetitle">Proxying</div>
+</div>
+</div>
+<div onclick="SwitchMenu('menu_1.1.4.1.3', '../../../../skin/')" id="menu_1.1.4.1.3Title" class="menutitle">Editors</div>
+<div id="menu_1.1.4.1.3" class="menuitemgroup">
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/editors/htmlform.html">HTML Form Editor</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/editors/1form.html">HTML One Form Editor</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/editors/bxe.html">Bitflux Editor</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/editors/kupu.html">Kupu</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/editors/xopus.html">Xopus</a>
+</div>
+</div>
+<div onclick="SwitchMenu('menu_1.1.4.1.4', '../../../../skin/')" id="menu_1.1.4.1.4Title" class="menutitle">Layout</div>
+<div id="menu_1.1.4.1.4" class="menuitemgroup">
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/layout/navigation.html">Navigation</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/layout/xhtml-templating.html">XHTML templating</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/layout/static-resources.html">Serving static resources</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/layout/lenya-menubar.html">Lenya Menubar</a>
+</div>
+</div>
+<div onclick="SwitchMenu('menu_1.1.4.1.5', '../../../../skin/')" id="menu_1.1.4.1.5Title" class="menutitle">Publication</div>
+<div id="menu_1.1.4.1.5" class="menuitemgroup">
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/publication/pageenvelopemodule.html">PageEnvelopeModule</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/publication/siteTree.html">Site tree</a>
+</div>
+</div>
+<div onclick="SwitchMenu('menu_1.1.4.1.6', '../../../../skin/')" id="menu_1.1.4.1.6Title" class="menutitle">Resource&nbsp;Types</div>
+<div id="menu_1.1.4.1.6" class="menuitemgroup">
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/resource-types/resource-types.html">Resource&nbsp;Types</a>
+</div>
+</div>
+<div onclick="SwitchMenu('menu_1.1.4.1.7', '../../../../skin/')" id="menu_1.1.4.1.7Title" class="menutitle">Revision Control</div>
+<div id="menu_1.1.4.1.7" class="menuitemgroup">
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/revisioncontrol/revisioncontroller.html">Revision Controller</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/revisioncontrol/rcml.html">RCML</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/revisioncontrol/checkin.html">Check In</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/revisioncontrol/checkout.html">Check Out</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/revisioncontrol/version.html">Revisions</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/revisioncontrol/rollback.html">Rollback</a>
+</div>
+</div>
+<div onclick="SwitchMenu('menu_1.1.4.1.8', '../../../../skin/')" id="menu_1.1.4.1.8Title" class="menutitle">Repository</div>
+<div id="menu_1.1.4.1.8" class="menuitemgroup">
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/repository/webdav.html">WebDAV Servers</a>
+</div>
+</div>
+<div onclick="SwitchMenu('menu_1.1.4.1.9', '../../../../skin/')" id="menu_1.1.4.1.9Title" class="menutitle">Search</div>
+<div id="menu_1.1.4.1.9" class="menuitemgroup">
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/search/lucene.html">Searching with Lucene</a>
+</div>
+</div>
+<div onclick="SwitchMenu('menu_1.1.4.1.10', '../../../../skin/')" id="menu_1.1.4.1.10Title" class="menutitle">URI Handling</div>
+<div id="menu_1.1.4.1.10" class="menuitemgroup">
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/uri-handling/URIParametrizer.html">URI Parametrizer</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/uri-handling/standardURI.html">URI Scheme</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/uri-handling/usecases.html">Usecases</a>
+</div>
+</div>
+<div onclick="SwitchMenu('menu_1.1.4.1.11', '../../../../skin/')" id="menu_1.1.4.1.11Title" class="menutitle">Asset Management</div>
+<div id="menu_1.1.4.1.11" class="menuitemgroup">
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/asset-management/management.html">Asset Management</a>
+</div>
+</div>
+<div onclick="SwitchMenu('menu_1.1.4.1.12', '../../../../skin/')" id="menu_1.1.4.1.12Title" class="menutitle">Link Management</div>
+<div id="menu_1.1.4.1.12" class="menuitemgroup">
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/link-management/link-management.html">Link Management</a>
+</div>
+</div>
+<div onclick="SwitchMenu('menu_1.1.4.1.13', '../../../../skin/')" id="menu_1.1.4.1.13Title" class="menutitle">Meta Data</div>
+<div id="menu_1.1.4.1.13" class="menuitemgroup">
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/metadata/metadata.html">Meta Data Handling</a>
+</div>
+</div>
+<div onclick="SwitchMenu('menu_1.1.4.1.14', '../../../../skin/')" id="menu_1.1.4.1.14Title" class="menutitle">Multilingual Documents</div>
+<div id="menu_1.1.4.1.14" class="menuitemgroup">
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/multilingual/multilingual.html">Multilingual Document Handling</a>
+</div>
+</div>
+<div onclick="SwitchMenu('menu_1.1.4.1.15', '../../../../skin/')" id="menu_1.1.4.1.15Title" class="menutitle">Tasks</div>
+<div id="menu_1.1.4.1.15" class="menuitemgroup">
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/tasks/concept.html">The Task Concept</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/tasks/defining.html">Defining Tasks</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/tasks/taskaction.html">The TaskAction</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/tasks/scheduling.html">Scheduling a Task</a>
+</div>
+<div onclick="SwitchMenu('menu_1.1.4.1.15.5', '../../../../skin/')" id="menu_1.1.4.1.15.5Title" class="menutitle">Included tasks</div>
+<div id="menu_1.1.4.1.15.5" class="menuitemgroup">
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/tasks/anttask.html">AntTask</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/tasks/publisher.html">DefaultFilePublisher</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/tasks/exporter.html">StaticHTMLExporter</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/tasks/mailtask.html">MailTask</a>
+</div>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/tasks/development.html">Developing Tasks</a>
+</div>
+</div>
+<div onclick="SwitchMenu('menu_1.1.4.1.16', '../../../../skin/')" id="menu_1.1.4.1.16Title" class="menutitle">Workflow</div>
+<div id="menu_1.1.4.1.16" class="menuitemgroup">
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/workflow/terms.html">Terms</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/workflow/state-machine.html">The State Machine</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/workflow/configuration.html">Configuration</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/workflow/implementation.html">Implementation</a>
+</div>
+</div>
+<div onclick="SwitchMenu('menu_1.1.4.1.17', '../../../../skin/')" id="menu_1.1.4.1.17Title" class="menutitle">Site Management</div>
+<div id="menu_1.1.4.1.17" class="menuitemgroup">
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/sitemanagement/archive.html">Archive</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/sitemanagement/copy.html">Copy</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/sitemanagement/deactivate.html">Deactivate</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/sitemanagement/delete.html">Delete</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/sitemanagement/deletetrash.html">Delete the trash</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/sitemanagement/move.html">Move</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/sitemanagement/moveupdown.html">Move Up/Down</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/sitemanagement/rename.html">Rename</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/components/sitemanagement/restore.html">Restore</a>
+</div>
+</div>
+</div>
+<div onclick="SwitchMenu('menu_1.1.4.2', '../../../../skin/')" id="menu_1.1.4.2Title" class="menutitle">Specifications</div>
+<div id="menu_1.1.4.2" class="menuitemgroup">
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/specs/namespaces.html">Namespaces</a>
+</div>
+</div>
+<div onclick="SwitchMenu('menu_1.1.4.3', '../../../../skin/')" id="menu_1.1.4.3Title" class="menutitle">Miscellaneous</div>
+<div id="menu_1.1.4.3" class="menuitemgroup">
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/misc/coding-guidelines.html">Coding Guidelines</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/misc/unittests.html">Unit Tests</a>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../docs/1_2_x/misc/xinclude-processor.html">XInclude Processor</a>
+</div>
+</div>
+<div class="menuitem">
+<a title="" href="../../../../apidocs/1.2/index.html">1.2 API (Javadoc)</a>
+</div>
+</div>
+<div onclick="SwitchMenu('menu_1.1.5', '../../../../skin/')" id="menu_1.1.5Title" class="menutitle">1.4</div>
+<div id="menu_1.1.5" class="menuitemgroup">
+<div class="menuitem">
+<a title="" href="../../../../apidocs/1.4/index.html">1.4 API (Javadoc)</a>
+</div>
+</div>
+</div>
+<div id="credit"></div>
+<div id="roundbottom">
+<img style="display: none" class="corner" height="15" width="15" alt="" src="../../../../skin/images/rc-b-l-15-1body-2menu-3menu.png"></div>
+<!--+
+  |alternative credits
+  +-->
+</div>
+<!--+
+    |end Menu
+    +-->
+<!--+
+    |start content
+    +-->
+<div id="content">
+<div id="skinconf-txtlink"></div>
+<div title="Portable Document Format" class="pdflink">
+<a class="dida" href="proxying.pdf"><img alt="PDF -icon" src="../../../../skin/images/pdfdoc.gif" class="skin"><br>
+        PDF</a>
+</div>
+<h1>Reverse Proxying Apache Lenya</h1>
+<div id="minitoc-area">
+<ul class="minitoc">
+<li>
+<a href="#Introduction">Introduction</a>
+</li>
+<li>
+<a href="#Configuration+in+publication.xconf">Configuration in publication.xconf</a>
+</li>
+<li>
+<a href="#Apache+Webserver+setup+%2F+Rewrite+Rules">Apache Webserver setup / Rewrite Rules</a>
+<ul class="minitoc">
+<li>
+<a href="#Rules+for+the+authoring+server">Rules for the authoring server</a>
+</li>
+<li>
+<a href="#Rules+for+the+live+server">Rules for the live server</a>
+</li>
+</ul>
+</li>
+</ul>
+</div> 
+
+
+<a name="N1001B"></a><a name="Introduction"></a>
+<h2 class="underlined_10">Introduction</h2>
+<div class="section">
+<p>The Lenya LinkRewritingTransformer enables a flexible way of proxy configuration. 
+    It is possible to define different proxies for each pair of area (authoring and live), 
+    and encryption (not encrypted or SSL). The Lenya part of the
+    proxy configuration is done in <span class="codefrag">$PUBLICATION/config/publication.xconf</span>
+    If you specify your proxy setup in that file, the LinkRewritingTransformer will rewrite links in your
+    publication to match these settings.
+</p>
+</div>
+
+
+<a name="N10028"></a><a name="Configuration+in+publication.xconf"></a>
+<h2 class="underlined_10">Configuration in publication.xconf</h2>
+<div class="section">
+<p>The publication.xconf of the default publication has proxying disabled by default:
+</p>
+<pre class="code">
+
+&lt;publication&gt;
+  &lt;languages&gt;
+    &lt;language default="true"&gt;en&lt;/language&gt;
+    &lt;language&gt;de&lt;/language&gt;
+  &lt;/languages&gt;
+  &lt;path-mapper&gt;org.apache.lenya.cms.publication.DefaultDocumentIdToPathMapper&lt;/path-mapper&gt;
+  &lt;document-builder&gt;org.apache.lenya.cms.publication.DefaultDocumentBuilder&lt;/document-builder&gt;
+  &lt;breadcrumb-prefix/&gt;
+
+  &lt;!--
+  &lt;proxy area="live" ssl="true" url="https://www.host.com/ssl/default"/&gt;
+  &lt;proxy area="live" ssl="false" url="http://www.host.com/default"/&gt;
+  &lt;proxy area="authoring" ssl="true" url="https://www.host.com/lenya/default/authoring"/&gt;
+  &lt;proxy area="authoring" ssl="false" url="http://www.host.com/lenya/default/authoring"/&gt;
+  --&gt;
+&lt;/publication&gt;
+
+</pre>
+<p>A possible configuration for two servers (an authoring server and a live server) may look like:</p>
+<pre class="code">
+
+&lt;publication&gt;
+  &lt;languages&gt;
+    &lt;language default="true"&gt;de&lt;/language&gt;
+    &lt;language&gt;en&lt;/language&gt;
+  &lt;/languages&gt;
+  &lt;path-mapper&gt;org.apache.lenya.cms.publication.DefaultDocumentIdToPathMapper&lt;/path-mapper&gt;
+  &lt;document-builder&gt;org.apache.lenya.cms.publication.DefaultDocumentBuilder&lt;/document-builder&gt;
+  &lt;breadcrumb-prefix&gt;University of Zurich&lt;/breadcrumb-prefix&gt;
+
+  &lt;proxy url="https://cms.live.ch/lenya/sandbox" ssl="true" area="live"/&gt;
+  &lt;proxy url="http://cms.sandbox.live.ch/lenya" ssl="false" area="live"/&gt;
+  &lt;proxy url="https://cms.authoring.ch/lenya/sandbox/authoring" ssl="true" area="authoring"/&gt;
+  &lt;proxy url="http://cms.authoring.ch/lenya/sandbox/authoring" ssl="false" area="authoring"/&gt;
+&lt;/publication&gt;
+
+</pre>
+<ul>
+<li> There is an ssl enabled authoring server (cms.authoring.ch) and the URL you get is e.g.
+         <span class="codefrag">http://cms.authoring.com/lenya/sandbox/authoring/index.html</span>.</li>
+    
+<li> There is an ssl enabled live server with (cms.live.ch and cms.sandbox.live.ch) and the URL you get on 
+        the live side is e.g. <span class="codefrag">http://cms.sandbox.live.ch/lenya/index.html</span> 
+</li>
+</ul>
+<p>
+<strong>Note:</strong>
+Up to now, session is only working if you add /lenya after your domain because the cookie which is  
+sent to the client stores the web application context. Therefore the browser did not send back the cookie 
+if you request a page like http://cms.sandbox.live.ch/index.html. 
+This is also mentioned on the <a href="http://wiki.apache.org/cocoon/ApacheModProxy">Cocoon Wiki page on proxying</a>. 
+With Apache 2.1 a recently introduced proxy directive for translating the cookie path 
+    <span class="codefrag">ProxyPassReverseCookiePath</span> will be available, which will allow you to get 
+    the cookie path translated by Apache with <span class="codefrag">ProxyPassReverseCookiePath&nbsp;/lenya&nbsp;/</span>
+     so that the cookie is always sent back to the server. 
+        As of today even the trunk version of Apache httpd does not have this feature. 
+            If you still want to use it with Apache 2.0 you will have to apply a patch 
+                <a href="http://issues.apache.org/bugzilla/show_bug.cgi?id=10722">
+http://issues.apache.org/bugzilla/show_bug.cgi?id=10722</a> and rebuild the Apache modules mod_proxy and 
+mod_http_proxy. The patch should work with Apache 2.0.49+ (I use it with 2.0.52 without any problems). 
+   The configuration of the Apache webserver that goes with this configuration is described next.</p>
+</div>
+
+<a name="N1005D"></a><a name="Apache+Webserver+setup+%2F+Rewrite+Rules"></a>
+<h2 class="underlined_10">Apache Webserver setup / Rewrite Rules</h2>
+<div class="section">
+<p>Before you start, make sure you have <span class="codefrag">mod_proxy</span> and <span class="codefrag">mod_rewrite</span> setup correctly.</p>
+<a name="N1006C"></a><a name="Rules+for+the+authoring+server"></a>
+<h3 class="underlined_5">Rules for the authoring server</h3>
+<p>This sample configuration uses <span class="codefrag">cms.authoring.ch</span> as the host name.</p>
+<ul>
+<li>  redirects logins to SSL </li>
+
+<li>  runs the authoring server over port 80 </li>
+
+<li>  publications are all mounted under cms.client.com/yourpub </li>
+
+<li>  you can use this setup for your live server if you do not want to mount your publication in a 
+    virtualhost. Just replace authoring with live, and put the proxy / rewrite directives in a 
+    &lt;Location&gt; rule </li>
+</ul>
+<pre class="code">
+
+&lt;VirtualHost cms.authoring.ch:80&gt;
+    ....
+
+    #All Content should be served by tomcat (i.e. lenya)
+    ProxyRequests    Off
+    RewriteEngine    On
+    RewriteLog       /var/log/apache2/cms.authoring.rewrite.log
+    RewriteLogLevel  0
+    RewriteRule      ^/([^/\.]+)$  $1/   [R]
+    RewriteRule       ^/([^/\.]+)/$ http://cms.authoring.ch/lenya/$1/authoring/index.html [R,L]
+
+    RewriteCond      %{QUERY_STRING} lenya\.usecase=login(.*)
+    RewriteRule      ^/(.*)   https://%{SERVER_NAME}/$1 [R,L]
+
+    RewriteRule      ^/(.*)   http://cms.authoring.ch:8080/$1  [P,L]
+    ProxyPassReverse / http://cms.authoring.ch:8080/
+
+
+&lt;/VirtualHost&gt;
+
+&lt;VirtualHost cms.authoring.ch:443&gt;
+   ....
+    RewriteEngine On
+
+    RewriteRule      ^/([^/\.]+)$  $1/   [R]
+    RewriteRule       ^/([^/\.]+)/$ http://cms.authoring.ch/lenya/$1/authoring/index.html [R,L]
+
+    RewriteRule      ^/(.*)   http://%{SERVER_NAME}:8080/$1  [P,L]
+    ProxyPassReverse / http://cms.authoring.ch:8080/
+&lt;/VirtualHost&gt;
+
+</pre>
+<a name="N1008A"></a><a name="Rules+for+the+live+server"></a>
+<h3 class="underlined_5">Rules for the live server</h3>
+<p>This sample configuration uses <span class="codefrag">cms.sandbox.live.ch</span> as the host name.</p>
+<ul>
+<li>  each publication is mounted as a seperate virtualhost </li>
+
+<li>The publication in this sample is named sandbox</li>
+
+<li>  Files within the directory static and files with the extension php are not redirected to Lenya. </li>
+
+<li>  Certificate is issued for www.client.com </li>
+</ul>
+<pre class="code">
+
+&lt;VirtualHost cms.sandbox.live.ch:80&gt;
+    .... 
+ 
+    ProxyRequests Off
+    RewriteEngine On
+    RewriteLog       "/var/log/apache2/cms.sandbox.rewrite.log"
+    RewriteLogLevel  1
+
+    RewriteRule       ^/$ /lenya/index.html [R]
+    RewriteRule      ^/[^(lenya)](.*) /lenya$0  [R]
+    RewriteRule      ^/static/?(.*)  $0 [L]
+    RewriteRule      ^/(.*)\.php  $0 [L]
+
+    # Not carefully tested yet -&gt; login should use https
+    #RewriteCond      %{QUERY_STRING} lenya\.usecase=login(.*)
+    #RewriteRule      ^/lenya/(.*)/live/(.*)$   https://cms.live.ch/$1/$2 [R,L]
+
+    RewriteRule      ^/lenya/[^/]+/live/(.*)$ /lenya/$1 [R,L]
+
+    RewriteRule      ^/(.*\.css$) http://cms.live.ch:8080/$1  [L]
+    RewriteRule      ^/(.*/authoring/.*) http://cms.live.ch:8080/$1  [L]
+    RewriteRule      ^/lenya/(.*) http://cms.live.ch:8080/lenya/sandbox/live/$1  [P]
+
+    ProxyPassReverse  / http://cms.live.ch:8080/
+
+&lt;/VirtualHost&gt;
+ 
+&lt;VirtualHost cms.live.ch:443&gt;
+      ......
+       
+    ProxyRequests Off
+    RewriteEngine On
+
+# RewriteRules for css and images
+     RewriteRule      ^/lenya/sandbox/(.*)/images/(.*)$ http://cms.live.ch:8080/lenya/sandbox/$1/images/$2 [L]
+     RewriteRule      ^/(.*\.css$) http://cms.live.ch:8080/$1  [L]
+
+     RewriteRule      ^/(lenya/[^/]+)/(.*)$   http://cms.live.ch:8080/$1/live/$2  [P,L]
+
+     ProxyPassReverse / http://cms.live.ch:8080/
+&lt;/VirtualHost&gt;
+
+</pre>
+</div>
+
+<p align="right">
+<font size="-2">by&nbsp;Lenya community</font>
+</p>
+</div>
+<!--+
+    |end content
+    +-->
+<div class="clearboth">&nbsp;</div>
+</div>
+<div id="footer">
+<!--+
+    |start bottomstrip
+    +-->
+<div class="lastmodified">
+<script type="text/javascript"><!--
+document.write("Last Published: " + document.lastModified);
+//  --></script>
+</div>
+<div class="copyright">
+ Copyright &copy; 2002-2004 The Apache Software Foundation.</div>
+<div id="feedback">
+    Send feedback about the website to:
+  <a id="feedbackto" href="mailto:dev@lenya.apache.org?subject=Feedback%C2%A0for%C2%A0docs/1_2_x/components/deployment/proxying.html">dev@lenya.apache.org</a>
+</div>
+<!--+
+    |end bottomstrip
+    +-->
+</div>
+</body>
+</html>

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org