Author: rjung
Date: Sun Nov 11 08:33:11 2007
New Revision: 593922

URL: http://svn.apache.org/viewvc?rev=593922&view=rev
Log:
Even if a vhost has private JkMounts, it should not always
inherit the mounts from the global server. Only inherit
if JkMountCopy indicates it.

Modified:
    tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

Modified: tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c?rev=593922&r1=593921&r2=593922&view=diff
==============================================================================
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Sun Nov 11 08:33:11 
2007
@@ -2461,18 +2461,18 @@
    if (overrides->mountcopy == JK_UNSET && jk_mount_copy_all == JK_TRUE) {     
   
        overrides->mountcopy == JK_TRUE;
    }
-   if (overrides->uri_to_context) {        
+   if (overrides->uri_to_context && overrides->mountcopy == JK_TRUE) {
 /* jk_map_copy() preserves existing entries in overrides map */
         if (jk_map_copy(base->uri_to_context, overrides->uri_to_context) == 
JK_FALSE) {
                 jk_error_exit(APLOG_MARK, APLOG_EMERG, overrides->s, p, 
"Memory error");
         }
-        if (overrides->mount_file_reload == JK_UNSET)
-            overrides->mount_file_reload = base->mount_file_reload;
         if (!overrides->mount_file)
             overrides->mount_file = base->mount_file;
         if (!overrides->alias_dir)
             overrides->alias_dir = base->alias_dir;
     }
+    if (overrides->mount_file_reload == JK_UNSET)
+        overrides->mount_file_reload = base->mount_file_reload;
     if (overrides->strip_session == JK_UNSET)
         overrides->strip_session = base->strip_session;
 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to