You are viewing a plain text version of this content. The canonical link for it is here.
Posted to test-cvs@httpd.apache.org by jo...@apache.org on 2004/10/12 15:53:41 UTC
cvs commit: httpd-test/perl-framework/t/conf extra.conf.in
jorton 2004/10/12 06:53:41
Modified: perl-framework/t/modules rewrite.t
perl-framework/t/conf extra.conf.in
Log:
Add test for RewriteRule [P] flag which is broken in HEAD
due to mod_proxy changes.
Revision Changes Path
1.11 +9 -1 httpd-test/perl-framework/t/modules/rewrite.t
Index: rewrite.t
===================================================================
RCS file: /home/cvs/httpd-test/perl-framework/t/modules/rewrite.t,v
retrieving revision 1.10
retrieving revision 1.11
diff -d -w -u -r1.10 -r1.11
--- rewrite.t 4 Aug 2004 15:44:09 -0000 1.10
+++ rewrite.t 12 Oct 2004 13:53:41 -0000 1.11
@@ -14,7 +14,7 @@
my @url = qw(forbidden gone perm temp);
my $r;
-plan tests => @map * @num + 3, need_module 'rewrite';
+plan tests => @map * @num + 4, need_module 'rewrite';
foreach (@map) {
foreach my $n (@num) {
@@ -52,3 +52,11 @@
chomp $r;
$r =~ s/\r//g;
ok ($r eq "JACKPOT");
+
+if (have_module('mod_proxy')) {
+ $r = GET_BODY("/modules/rewrite/proxy.html");
+ chomp $r;
+ ok t_cmp($r, "JACKPOT", "request was proxied");
+} else {
+ skip "Skipping rewrite to proxy; no proxy module.";
+}
1.52 +3 -0 httpd-test/perl-framework/t/conf/extra.conf.in
Index: extra.conf.in
===================================================================
RCS file: /home/cvs/httpd-test/perl-framework/t/conf/extra.conf.in,v
retrieving revision 1.51
retrieving revision 1.52
diff -d -w -u -r1.51 -r1.52
--- extra.conf.in 20 Sep 2004 19:28:47 -0000 1.51
+++ extra.conf.in 12 Oct 2004 13:53:41 -0000 1.52
@@ -157,6 +157,9 @@
RewriteCond %{ENV:MAPTYPE} =prg
RewriteRule ^([1-6])$ ${numbers-prg:$1}.html [L]
+ ## Proxy pass-through
+ RewriteRule ^proxy.html$ http://@SERVERNAME@:@PORT@/modules/rewrite/lucky13.html [L,P]
+
</Directory>
</IfModule>
Re: cvs commit: httpd-test/perl-framework/t/conf extra.conf.in
Posted by André Malo <nd...@perlig.de>.
* Geoffrey Young <ge...@modperlcookbook.org> wrote:
> joe++
> :)
!
;-)
nd
--
"Solides und umfangreiches Buch"
-- aus einer Rezension
<http://pub.perlig.de/books.html#apache2>
Re: cvs commit: httpd-test/perl-framework/t/conf extra.conf.in
Posted by Geoffrey Young <ge...@modperlcookbook.org>.
jorton@apache.org wrote:
> jorton 2004/10/12 06:53:41
>
> Modified: perl-framework/t/modules rewrite.t
> perl-framework/t/conf extra.conf.in
> Log:
> Add test for RewriteRule [P] flag which is broken in HEAD
> due to mod_proxy changes.
joe++
:)
--Geoff