Author: rjung
Date: Thu Mar  5 00:24:59 2009
New Revision: 750254

URL: http://svn.apache.org/viewvc?rev=750254&view=rev
Log:
Clarify IIS URL rewrite feature in documentation.

Modified:
    tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml
    tomcat/connectors/trunk/jk/xdocs/reference/iis.xml

Modified: tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml?rev=750254&r1=750253&r2=750254&view=diff
==============================================================================
--- tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml (original)
+++ tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml Thu Mar  5 
00:24:59 2009
@@ -44,6 +44,9 @@
   <subsection name="Native">
     <changelog>
       <update>
+        Docs: Clarify IIS URL rewrite feature. (rjung)
+      </update>
+      <update>
         Status: Remove redundant port information form worker display.
         Rename address column and remove its explanation from the legend. 
(rjung)
       </update>

Modified: tomcat/connectors/trunk/jk/xdocs/reference/iis.xml
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/xdocs/reference/iis.xml?rev=750254&r1=750253&r2=750254&view=diff
==============================================================================
--- tomcat/connectors/trunk/jk/xdocs/reference/iis.xml (original)
+++ tomcat/connectors/trunk/jk/xdocs/reference/iis.xml Thu Mar  5 00:24:59 2009
@@ -284,10 +284,8 @@
     </ul>    
 </p>
 <p><source>
-
 # Use the logs in the installation path of ISAPI Redirector
 log_file=$(ISAPI_PATH)\$(ISAPI_NAME).log
-
 </source></p>
 </section>
 
@@ -297,22 +295,24 @@
 as powerful as Apache Httpd's mod_rewrite, it allows a simple exchange of 
request URIs
 </p>
 <p>
-The rule is in the form rewritten=real-url.
+The rule is in the form original-url-prefix=forward-url-prefix. For example:
 </p>
-<p>
-The rules must be simple strings. For example:
-</p>
-<p>
 <source>
-# Simple rewrite rules
-
+# Simple rewrite rules, making /jsp-examples
+# and /servlets-examples available under shorter URLs
 /jsp/=/jsp-examples/
 /servlets/=/servlets-examples/
-
 </source>
+<p>
+You can also use regular expressions, if you prefix the rule with a tilde 
<code>~</code>:
 </p>
+<source>
+# Complex rewrite rule, adding "-examples"
+# to the first path component of all requests
+~/([^/]*)=/$1-examples
+</source>
 <p>
-Note that the uriworkermap or mount point must point to that new rule.
+Note that uriworkermap.properties must use the URLs before rewriting.
 </p>
 </section>
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to