Author: jfrederic.clere(a)jboss.com
Date: 2012-10-08 09:48:50 -0400 (Mon, 08 Oct 2012)
New Revision: 2105
Modified:
branches/7.2.x/webapps/docs/build.xml
branches/7.2.x/webapps/docs/rewrite.xml
Log:
Arrange the rewrite docs and the build.xml to generate it.
Modified: branches/7.2.x/webapps/docs/build.xml
===================================================================
--- branches/7.2.x/webapps/docs/build.xml 2012-10-08 10:01:35 UTC (rev 2104)
+++ branches/7.2.x/webapps/docs/build.xml 2012-10-08 13:48:50 UTC (rev 2105)
@@ -57,11 +57,6 @@
<copy
tofile="${webapps.build}/${webapp.name}/appdev/sample/build.xml"
file="appdev/build.xml.txt"/>
- <!-- Architecture -->
- <copy todir="${webapps.build}/${webapp.name}/architecture">
- <fileset dir="architecture" excludes="*.xml"/>
- </copy>
-
<!-- Images Subdirectory -->
<mkdir dir="${webapps.build}/${webapp.name}/images"/>
<copy todir="${webapps.build}/${webapp.name}/images">
@@ -173,26 +168,6 @@
<param name="project-menu" expression="nomenu"/>
</style>
- <!-- Server Architecture -->
- <style basedir="architecture"
- destdir="${webapps.build}/${webapp.name}/architecture"
- extension=".html"
- style="tomcat-docs.xsl"
- excludes="project.xml"
- includes="*.xml">
- <param name="relative-path" expression=".."/>
- </style>
- <mkdir
dir="${webapps.build}/${webapp.name}/architecture/printer"/>
- <style basedir="architecture"
- destdir="${webapps.build}/${webapp.name}/architecture/printer"
- extension=".html"
- style="tomcat-docs.xsl"
- excludes="project.xml"
- includes="*.xml">
- <param name="relative-path" expression="../.."/>
- <param name="project-menu" expression="nomenu"/>
- </style>
-
</target>
Modified: branches/7.2.x/webapps/docs/rewrite.xml
===================================================================
--- branches/7.2.x/webapps/docs/rewrite.xml 2012-10-08 10:01:35 UTC (rev 2104)
+++ branches/7.2.x/webapps/docs/rewrite.xml 2012-10-08 13:48:50 UTC (rev 2105)
@@ -8,7 +8,8 @@
<properties>
<author email="mladen.turk(a)jboss.com">Mladen Turk</author>
- <title>Overview</title>
+ <author email="jfclere(a)gmail.com">Jean-Frederic Clere</author>
+ <title>The rewrite Valve</title>
</properties>
<body>
@@ -22,24 +23,20 @@
<section name="Configuration">
- <p>The rewrite valve is configured as a regular valve, by adding the following
- to server.xml as child of an Engine or Host element (or inside a context.xml
- file):</p>
-
- <source><Valve className="org.jboss.web.rewrite.RewriteValve"
/></source>
+ <p>The rewrite valve can be configured as a valve added in a virtual-host.
+ See <a href="config/host.html">virtual-server</a>
documentation for
+ informations how to configure it.
+ </p>
+ <p>It can also be in the jboss-web.xml of a webapp configured as a normal value:
+ </p>
+ <source>
+<valve>
+
<class-name>org.jboss.web.rewrite.RewriteValve"</class-name>
+</valve>
+ </source>
<p>The valve will then use a <code>rewrite.properties</code> file
containing the
- rewrite directives, located according to the container it is assocaited to:
- <ul>
- <li>If associated with an engine, it should be placed in a folder named
- [engine_name] placed either in the classloader, or in the conf folder of the current
- JBoss profile</li>
- <li>If associated with a host, it should be placed in a folder named
- [engine_name]/[host_name] placed either in the classloader, or in the conf folder of
the current
- JBoss profile</li>
- <li>If associated with a context, it should be placed in the WEB-INF folder of
the web
- application</li>
- </ul>
+ rewrite directives, it must be placed in the WEB-INF folder of the web application
</p>
</section>
Show replies by date