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 2005/02/02 16:41:17 UTC
svn commit: r149524 - in httpd/test/trunk/perl-framework/t:
conf/extra.conf.in htdocs/modules/proxy/ htdocs/modules/proxy/reverse/
htdocs/modules/proxy/reverse/notproxy/
htdocs/modules/proxy/reverse/notproxy/local.html modules/proxy.t
Author: jorton
Date: Wed Feb 2 07:41:14 2005
New Revision: 149524
URL: http://svn.apache.org/viewcvs?view=rev&rev=149524
Log:
Add test for "ProxyPass ... !".
Added:
httpd/test/trunk/perl-framework/t/htdocs/modules/proxy/
httpd/test/trunk/perl-framework/t/htdocs/modules/proxy/reverse/
httpd/test/trunk/perl-framework/t/htdocs/modules/proxy/reverse/notproxy/
httpd/test/trunk/perl-framework/t/htdocs/modules/proxy/reverse/notproxy/local.html
Modified:
httpd/test/trunk/perl-framework/t/conf/extra.conf.in
httpd/test/trunk/perl-framework/t/modules/proxy.t
Modified: httpd/test/trunk/perl-framework/t/conf/extra.conf.in
URL: http://svn.apache.org/viewcvs/httpd/test/trunk/perl-framework/t/conf/extra.conf.in?view=diff&r1=149523&r2=149524
==============================================================================
--- httpd/test/trunk/perl-framework/t/conf/extra.conf.in (original)
+++ httpd/test/trunk/perl-framework/t/conf/extra.conf.in Wed Feb 2 07:41:14 2005
@@ -209,6 +209,8 @@
<IfModule mod_proxy.c>
<VirtualHost proxy_http_reverse>
+ DocumentRoot @SERVERROOT@/htdocs/modules/proxy
+ ProxyPass /reverse/notproxy/ !
ProxyPass /reverse/ http://@SERVERNAME@:@PORT@/
ProxyPassReverse /reverse/ http://@SERVERNAME@:@PORT@/
</VirtualHost>
Added: httpd/test/trunk/perl-framework/t/htdocs/modules/proxy/reverse/notproxy/local.html
URL: http://svn.apache.org/viewcvs/httpd/test/trunk/perl-framework/t/htdocs/modules/proxy/reverse/notproxy/local.html?view=auto&rev=149524
==============================================================================
--- httpd/test/trunk/perl-framework/t/htdocs/modules/proxy/reverse/notproxy/local.html (added)
+++ httpd/test/trunk/perl-framework/t/htdocs/modules/proxy/reverse/notproxy/local.html Wed Feb 2 07:41:14 2005
@@ -0,0 +1 @@
+hello world
Modified: httpd/test/trunk/perl-framework/t/modules/proxy.t
URL: http://svn.apache.org/viewcvs/httpd/test/trunk/perl-framework/t/modules/proxy.t?view=diff&r1=149523&r2=149524
==============================================================================
--- httpd/test/trunk/perl-framework/t/modules/proxy.t (original)
+++ httpd/test/trunk/perl-framework/t/modules/proxy.t Wed Feb 2 07:41:14 2005
@@ -6,7 +6,7 @@
use Apache::TestUtil;
use Apache::TestConfig ();
-plan tests => 11, need_module 'proxy';
+plan tests => 13, need_module 'proxy';
Apache::TestRequest::module("proxy_http_reverse");
Apache::TestRequest::user_agent(requests_redirectable => 0);
@@ -45,6 +45,12 @@
} else {
skip "skipping PR 15207 test with httpd < 2.1.0";
}
+
+$r = GET("/reverse/notproxy/local.html");
+ok t_cmp($r->code, 200, "ProxyPass not-proxied request");
+my $c = $r->content;
+chomp $c;
+ok t_cmp($c, "hello world", "ProxyPass not-proxied content OK");
if (have_module('alias')) {
$r = GET("/reverse/perm");