You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2018/10/12 12:27:59 UTC

svn commit: r1843657 - in /tomcat/trunk/webapps/docs: changelog.xml config/context.xml

Author: markt
Date: Fri Oct 12 12:27:59 2018
New Revision: 1843657

URL: http://svn.apache.org/viewvc?rev=1843657&view=rev
Log:
Fix https://bz.apache.org/bugzilla/show_bug.cgi?id=62786
Add a note to the Context documentation to explain that, by default, settings for a Context element defined in server.xml will be overwritten by settings specified in a default context file such as conf/context.xml

Modified:
    tomcat/trunk/webapps/docs/changelog.xml
    tomcat/trunk/webapps/docs/config/context.xml

Modified: tomcat/trunk/webapps/docs/changelog.xml
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=1843657&r1=1843656&r2=1843657&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/trunk/webapps/docs/changelog.xml Fri Oct 12 12:27:59 2018
@@ -187,6 +187,12 @@
         <bug>62761</bug>: Correct the advanced CORS example in the Filter
         documentation to use a valid configuration. (markt)
       </fix>
+      <fix>
+        <bug>62786</bug>: Add a note to the Context documentation to explain
+        that, by default, settings for a Context element defined in server.xml
+        will be overwritten by settings specified in a default context file such
+        as <code>conf/context.xml</code>. (markt)
+      </fix>
     </changelog>
   </subsection>
   <subsection name="Tribes">

Modified: tomcat/trunk/webapps/docs/config/context.xml
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/config/context.xml?rev=1843657&r1=1843656&r2=1843657&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/config/context.xml (original)
+++ tomcat/trunk/webapps/docs/config/context.xml Fri Oct 12 12:27:59 2018
@@ -193,7 +193,11 @@
   server.xml file.</b> This is because it makes modifying the
   <strong>Context</strong> configuration more invasive since the main
   <code>conf/server.xml</code> file cannot be reloaded without restarting
-  Tomcat.</p>
+  Tomcat. Default <strong>Context</strong> elements (see below) will also
+  <strong>overwrite</strong> the configuration of any &lt;Context&gt; elements
+  placed directly in server.xml. To prevent this, the <code>override</code>
+  attribute of the &lt;Context&gt; element defined in server.xml should be set
+  to <code>true</code>.</p>
 
   <p>Individual <strong>Context</strong> elements may be explicitly defined:
   </p>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org