svn commit: r588652 - in /lenya/docu/src/documentation/content/xdocs/docs/2_0_x/tutorials/proxy: mod_proxy_ajp.xml proxy.xml proxying.xml

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Fri Oct 26 07:05:01 2007
New Revision: 588652

URL: http://svn.apache.org/viewvc?rev=588652&view=rev
Log:
Updated proxy docs, don't include /authoring/ in the URL

Modified:
    lenya/docu/src/documentation/content/xdocs/docs/2_0_x/tutorials/proxy/mod_proxy_ajp.xml
    lenya/docu/src/documentation/content/xdocs/docs/2_0_x/tutorials/proxy/proxy.xml
    lenya/docu/src/documentation/content/xdocs/docs/2_0_x/tutorials/proxy/proxying.xml

Modified: lenya/docu/src/documentation/content/xdocs/docs/2_0_x/tutorials/proxy/mod_proxy_ajp.xml
URL: http://svn.apache.org/viewvc/lenya/docu/src/documentation/content/xdocs/docs/2_0_x/tutorials/proxy/mod_proxy_ajp.xml?rev=588652&r1=588651&r2=588652&view=diff
==============================================================================
--- lenya/docu/src/documentation/content/xdocs/docs/2_0_x/tutorials/proxy/mod_proxy_ajp.xml (original)
+++ lenya/docu/src/documentation/content/xdocs/docs/2_0_x/tutorials/proxy/mod_proxy_ajp.xml Fri Oct 26 07:05:01 2007
@@ -46,7 +46,7 @@
       <source xml:space="preserve"><![CDATA[NameVirtualHost *:80
 NameVirtualHost *:443
 
-# This is the non-SSL host for the authoring area.
+# This is the non-SSL host for the authoring environment.
 <VirtualHost *:80>
     ServerAdmin [email protected]
     ServerName cms.example.com
@@ -78,15 +78,15 @@
     </Location>
 
     <Location />
-      ProxyPass ajp://localhost:8009/default/authoring/
-      ProxyPassReverse http://cms.example.com/default/authoring/
+      ProxyPass ajp://localhost:8009/default/
+      ProxyPassReverse http://cms.example.com/default/
     </Location>
 
     ErrorLog /home/john/src/www/logs/cms.example.com-error_log
     CustomLog /home/john/src/www/logs/cms.example.com-access_log common
 </VirtualHost>
 
-# This is the SSL host for the authoring area.
+# This is the SSL host for the authoring environment.
 <VirtualHost *:443>
     ServerName cms.example.com
     ServerAlias cms
@@ -114,8 +114,8 @@
     </Location>
     
     <Location />
-      ProxyPass ajp://localhost:8009/default/authoring/
-      ProxyPassReverse https://cms.example.com/default/authoring/
+      ProxyPass ajp://localhost:8009/default/
+      ProxyPassReverse https://cms.example.com/default/
     </Location>
 
     ErrorLog /home/john/src/www/logs/ssl.cms.example.com-error_log

Modified: lenya/docu/src/documentation/content/xdocs/docs/2_0_x/tutorials/proxy/proxy.xml
URL: http://svn.apache.org/viewvc/lenya/docu/src/documentation/content/xdocs/docs/2_0_x/tutorials/proxy/proxy.xml?rev=588652&r1=588651&r2=588652&view=diff
==============================================================================
--- lenya/docu/src/documentation/content/xdocs/docs/2_0_x/tutorials/proxy/proxy.xml (original)
+++ lenya/docu/src/documentation/content/xdocs/docs/2_0_x/tutorials/proxy/proxy.xml Fri Oct 26 07:05:01 2007
@@ -34,7 +34,7 @@
       <source xml:space="preserve"><![CDATA[NameVirtualHost *:80
 NameVirtualHost *:443
 
-# This is the non-SSL host for the authoring area.
+# This is the non-SSL host for the authoring environment.
 <VirtualHost *:80>
     ServerAdmin [email protected]
     ServerName cms.example.com
@@ -47,7 +47,7 @@
     RewriteLog /home/john/src/www/logs/cms.example.com-rewrite_log
     RewriteLogLevel 4
     
-    # First we match everything which is not mapped to /default/authoring
+    # First we match everything which is not mapped to /default/{area}
     RewriteRule ^/lenya/(.*) http://cms.example.com:8888/lenya/$1 [P,L]
     RewriteRule ^/modules/(.*) http://cms.example.com.com:8888/modules/$1 [P,L]
     RewriteRule ^/default/modules/(.*) http://cms.example.com:8888/default/modules/$1 [P,L]
@@ -56,15 +56,15 @@
     RewriteCond %{QUERY_STRING} (.*)lenya\.usecase=ac\.login(.*)
     RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [R,L]
 
-    # Forward the authoring area to the proxy
-    RewriteRule ^/(.*) http://cms.example.com:8888/default/authoring/$1 [P,L]
-    ProxyPassReverse / http://cms.example.com:8888/default/authoring/
+    # Forward the areas to the proxy
+    RewriteRule ^/(.*) http://cms.example.com:8888/default/$1 [P,L]
+    ProxyPassReverse / http://cms.example.com:8888/default/
     
     ErrorLog /home/john/src/www/logs/cms.example.com-error_log
     CustomLog /home/john/src/www/logs/cms.example.com-access_log common
 </VirtualHost>
 
-# This is the SSL host for the authoring area.
+# This is the SSL host for the authoring environment.
 <VirtualHost *:443>
     ServerAdmin [email protected]
     ServerName cms.example.com
@@ -84,8 +84,8 @@
     RewriteRule ^/modules/(.*) http://cms.example.com.com:8888/modules/$1 [P,L]
     RewriteRule ^/default/modules/(.*) http://cms.example.com:8888/default/modules/$1 [P,L]
 
-    RewriteRule ^/(.*) http://cms.example.com:8888/default/authoring/$1 [P,L]
-    ProxyPassReverse / http://cms.example.com:8888/default/authoring/
+    RewriteRule ^/(.*) http://cms.example.com:8888/default/$1 [P,L]
+    ProxyPassReverse / http://cms.example.com:8888/default/
     
     ErrorLog /home/john/src/www/logs/cms.example.com-error_log
     CustomLog /home/john/src/www/logs/cms.example.com-access_log common

Modified: lenya/docu/src/documentation/content/xdocs/docs/2_0_x/tutorials/proxy/proxying.xml
URL: http://svn.apache.org/viewvc/lenya/docu/src/documentation/content/xdocs/docs/2_0_x/tutorials/proxy/proxying.xml?rev=588652&r1=588651&r2=588652&view=diff
==============================================================================
--- lenya/docu/src/documentation/content/xdocs/docs/2_0_x/tutorials/proxy/proxying.xml (original)
+++ lenya/docu/src/documentation/content/xdocs/docs/2_0_x/tutorials/proxy/proxying.xml Fri Oct 26 07:05:01 2007
@@ -45,6 +45,15 @@
         login usecase. Once you have established an SSL connection, your connection will
         stay encrypted.
       </p>
+      <p>
+        The live area is mapped directly to the root of the <em>www.example.com</em> host.
+        Since the authoring environment comprises different areas (for instance authoring,
+        archive, trash), the publication root is mapped to the root of <em>cms.example.com</em>:
+      </p>
+      <source xml:space="preserve"><![CDATA[/pub/authoring <-> cms.example.com/authoring
+/pub/archive   <-> cms.example.com/archive
+/pub/trash     <-> cms.example.com/trash
+/pub/live      <-> www.example.com]]></source>
     </section>
     
     <section>
@@ -99,14 +108,18 @@
       <p>
         When you use a proxy, Lenya has to convert all internal links accordingly.
         Therefore you have to tell the publication about the proxy configuration.
-        Open the file <code>pubs/default/config/publication.xml</code> and uncomment
+        Open the file <code>$PUBLICATION_HOME/config/publication.xml</code> and uncomment
         and modify the <code><![CDATA[<proxy/>]]></code> elements:
       </p>
       <source xml:space="preserve"><![CDATA[<proxies>
-  <proxy ssl="false" area="authoring" url="http://cms.example.com"/>
-  <proxy ssl="false" area="live" url="http://www.example.com"/>
-  <proxy ssl="true" area="authoring" url="https://cms.example.com"/>
-  <proxy ssl="true" area="live" url="https://www.example.com"/>
+  <proxy area="authoring" ssl="true" url="https://cms.example.com/authoring"/>
+  <proxy area="authoring" ssl="false" url="http://cms.example.com/authoring"/>
+  <proxy area="trash" ssl="true" url="https://cms.example.com/trash"/>
+  <proxy area="trash" ssl="false" url="http://cms.example.com/trash"/>
+  <proxy area="archive" ssl="true" url="https://cms.example.com/archive"/>
+  <proxy area="archive" ssl="false" url="http://cms.example.com/archive"/>
+  <proxy area="live" ssl="true" url="https://www.example.com"/>
+  <proxy area="live" ssl="false" url="http://www.example.com"/>
 </proxies>]]></source>
     </section>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.