Author: jfrederic.clere(a)jboss.com
Date: 2008-03-27 04:26:29 -0400 (Thu, 27 Mar 2008)
New Revision: 1472
Modified:
sandbox/httpd/src/java/TestHttpClient.java
sandbox/httpd/src/native/mod_proxy_cluster/mod_proxy_cluster.c
Log:
Add a remove a different application.
Modified: sandbox/httpd/src/java/TestHttpClient.java
===================================================================
--- sandbox/httpd/src/java/TestHttpClient.java 2008-03-27 08:25:21 UTC (rev 1471)
+++ sandbox/httpd/src/java/TestHttpClient.java 2008-03-27 08:26:29 UTC (rev 1472)
@@ -32,6 +32,7 @@
pm = (PostMethod) new EnableMethod(URL);
pm.addParameter("JVMRoute","node1");
pm.addParameter("context", "/myapp");
+ System.out.println("ENABLE");
}
else if (command.compareToIgnoreCase("DISABLE")==0) {
pm = (PostMethod) new DisableMethod(URL);
@@ -46,7 +47,7 @@
else if (command.compareToIgnoreCase("REMOVE")==0) {
pm = (PostMethod) new RemoveMethod(URL);
pm.addParameter("JVMRoute","node1");
- pm.addParameter("context", "/myapp");
+ pm.addParameter("context", "/hisapp");
}
else if (command.compareToIgnoreCase("CONFIG")==0) {
pm = (PostMethod) new ConfigMethod(URL);
Modified: sandbox/httpd/src/native/mod_proxy_cluster/mod_proxy_cluster.c
===================================================================
--- sandbox/httpd/src/native/mod_proxy_cluster/mod_proxy_cluster.c 2008-03-27 08:25:21 UTC
(rev 1471)
+++ sandbox/httpd/src/native/mod_proxy_cluster/mod_proxy_cluster.c 2008-03-27 08:26:29 UTC
(rev 1472)
@@ -183,6 +183,9 @@
continue;
/* check for /context[/] in the URL */
+ ap_log_error(APLOG_MARK, APLOG_ERR|APLOG_NOERRNO, 0, r->server,
+ "iscontext_host_ok: %s %s", context->context,
+ r->uri);
int len = strlen(context->context);
if (strncmp(r->uri, context->context, len) == 0) {
if (r->uri[len] == '\0' || r->uri[len] == '/')
{
Show replies by date