shannon 2002/07/10 11:48:42
Modified: src/documentation/xdocs/faq faq-configure-environment.xml
Log:
- Added Liam Morley's note about mod_rewrite
- Added Fabien Tregan's FAQ about accessing
Cocoon's status page in a mixed servelt context where
"/" is not mapped specfically to Cocoon.
Revision Changes Path
1.3 +26 -0
xml-cocoon2/src/documentation/xdocs/faq/faq-configure-environment.xml
Index: faq-configure-environment.xml
===================================================================
RCS file:
/home/cvs/xml-cocoon2/src/documentation/xdocs/faq/faq-configure-environment.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- faq-configure-environment.xml 27 Jun 2002 19:40:54 -0000 1.2
+++ faq-configure-environment.xml 10 Jul 2002 18:48:42 -0000 1.3
@@ -135,6 +135,9 @@
RewriteRule ^/Foo /cocoon/Foo/ [R]
RewriteRule ^/Foo(.*) /cocoon/Foo$1 [R]
</note>
+ <note>
+Another user adds: In my experience, session support is lost when you use
mod_rewrite because the cookie path for the Cocoon session is "/cocoon". Because the
browser sees the path differently, the session cookie is not granted access, and
sessions don't work. I got around this by renaming Cocoon to ROOT, I imagine setting
the default docBase would have the same effect.
+ </note>
</answer>
</faq>
@@ -261,6 +264,29 @@
section in the <link href="../installing/index.html">Cocoon installation
guide</link>.
</p>
</answer>
+</faq>
+
+<faq>
+ <question>
+ How can I access Cocoon's status page in a mixed servlet environment
+ where "/" is not mapped to Cocoon (only *.xml, *.xsp)?
+ </question>
+ <answer>
+ <p>
+Just change the status pipeline so it matches a request with a ".xml" extension:
+ </p>
+
+ <source><![CDATA[
+ <map:match pattern="status.xml">
+ <map:generate src="status" type="status"/>
+ <map:transform src="welcome/status2html.xsl"/>
+ <map:serialize/>
+ </map:match>
+]]></source>
+ <p>
+Then you can access the status page with "status.xml".
+ </p>
+</answer>
</faq>
</faqs>
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]