httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r757421 - in /httpd/test/framework/trunk/t: conf/proxy.conf.in htdocs/modules/proxy/rewrite/ htdocs/modules/proxy/rewrite/.htaccess htdocs/modules/rewrite/foo bar.html modules/rewrite.t
Date Mon, 23 Mar 2009 15:52:52 GMT
Author: jorton
Date: Mon Mar 23 15:52:51 2009
New Revision: 757421

URL: http://svn.apache.org/viewvc?rev=757421&view=rev
Log:
- add test case for PR 46428

Added:
    httpd/test/framework/trunk/t/htdocs/modules/proxy/rewrite/
    httpd/test/framework/trunk/t/htdocs/modules/proxy/rewrite/.htaccess
    httpd/test/framework/trunk/t/htdocs/modules/rewrite/foo bar.html
Modified:
    httpd/test/framework/trunk/t/conf/proxy.conf.in
    httpd/test/framework/trunk/t/modules/rewrite.t

Modified: httpd/test/framework/trunk/t/conf/proxy.conf.in
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/conf/proxy.conf.in?rev=757421&r1=757420&r2=757421&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/conf/proxy.conf.in (original)
+++ httpd/test/framework/trunk/t/conf/proxy.conf.in Mon Mar 23 15:52:51 2009
@@ -32,3 +32,9 @@
 
    </VirtualHost>
 </IfModule>
+
+<IfModule mod_rewrite.c>
+  <Directory @SERVERROOT@/htdocs/modules/proxy/rewrite>
+     AllowOverride All
+  </Directory>
+</IfModule>

Added: httpd/test/framework/trunk/t/htdocs/modules/proxy/rewrite/.htaccess
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/htdocs/modules/proxy/rewrite/.htaccess?rev=757421&view=auto
==============================================================================
--- httpd/test/framework/trunk/t/htdocs/modules/proxy/rewrite/.htaccess (added)
+++ httpd/test/framework/trunk/t/htdocs/modules/proxy/rewrite/.htaccess Mon Mar 23 15:52:51
2009
@@ -0,0 +1,2 @@
+RewriteEngine on
+RewriteRule ^(.*)$ /modules/rewrite/$1 [P,L]

Added: httpd/test/framework/trunk/t/htdocs/modules/rewrite/foo bar.html
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/htdocs/modules/rewrite/foo%20bar.html?rev=757421&view=auto
==============================================================================
--- httpd/test/framework/trunk/t/htdocs/modules/rewrite/foo bar.html (added)
+++ httpd/test/framework/trunk/t/htdocs/modules/rewrite/foo bar.html Mon Mar 23 15:52:51 2009
@@ -0,0 +1 @@
+foo bar

Modified: httpd/test/framework/trunk/t/modules/rewrite.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/modules/rewrite.t?rev=757421&r1=757420&r2=757421&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/modules/rewrite.t (original)
+++ httpd/test/framework/trunk/t/modules/rewrite.t Mon Mar 23 15:52:51 2009
@@ -14,7 +14,7 @@
 my @url = qw(forbidden gone perm temp);
 my $r;
 
-plan tests => @map * @num + 10, need_module 'rewrite';
+plan tests => @map * @num + 11, need_module 'rewrite';
 
 foreach (@map) {
     foreach my $n (@num) {
@@ -61,8 +61,13 @@
     $r = GET_BODY("/modules/rewrite/proxy.html");
     chomp $r;
     ok t_cmp($r, "JACKPOT", "request was proxied");
+
+    # PR 46428
+    $r = GET_BODY("/modules/proxy/rewrite/foo bar.html");
+    chomp $r;
+    ok t_cmp($r, "foo bar", "per-dir proxied rewrite escaping worked");
 } else {
-    skip "Skipping rewrite to proxy; no proxy module.";
+    skip "Skipping rewrite to proxy; no proxy module." foreach (1..2);
 }
 
 if (have_module('mod_proxy') && have_cgi) {



Mime
View raw message