[Catalyst-commits] r6618 - trunk/Catalyst-Runtime/t/conf

andyg at dev.catalyst.perl.org andyg at dev.catalyst.perl.org
Fri Aug 3 17:58:16 GMT 2007


Author: andyg
Date: 2007-08-03 17:58:15 +0100 (Fri, 03 Aug 2007)
New Revision: 6618

Modified:
   trunk/Catalyst-Runtime/t/conf/extra.conf.in
Log:
Use mod_rewrite to fix trailing slash issue with CGI test

Modified: trunk/Catalyst-Runtime/t/conf/extra.conf.in
===================================================================
--- trunk/Catalyst-Runtime/t/conf/extra.conf.in	2007-08-03 16:32:53 UTC (rev 6617)
+++ trunk/Catalyst-Runtime/t/conf/extra.conf.in	2007-08-03 16:58:15 UTC (rev 6618)
@@ -9,8 +9,14 @@
 
     # REDIRECT_URL test
     <IfModule mod_rewrite.c>
+        # Fix trailing slash on /cgi
+        # one CGI test will fail if you don't have mod_rewrite enabled
+        RewriteEngine on
+        RewriteRule /cgi$ /cgi/ [PT]
+
         <Location /rewrite>
             RewriteEngine on
+            RewriteRule /rewrite$ /rewrite/ [PT]
             RewriteRule /rewrite/(.*) /cgi/$1
         </Location>
     </IfModule>




More information about the Catalyst-commits mailing list