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 <Context> elements + placed directly in server.xml. To prevent this, the <code>override</code> + attribute of the <Context> 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-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org