Author: kkolinko Date: Tue Aug 2 09:27:21 2011 New Revision: 1153078 URL: http://svn.apache.org/viewvc?rev=1153078&view=rev Log: CTR: Docs Remove path attribute from examples of <Context> where this attribute is not needed.
Modified: tomcat/tc5.5.x/trunk/container/webapps/docs/config/context.xml tomcat/tc5.5.x/trunk/container/webapps/docs/jndi-datasource-examples-howto.xml tomcat/tc5.5.x/trunk/container/webapps/docs/manager-howto.xml Modified: tomcat/tc5.5.x/trunk/container/webapps/docs/config/context.xml URL: http://svn.apache.org/viewvc/tomcat/tc5.5.x/trunk/container/webapps/docs/config/context.xml?rev=1153078&r1=1153077&r2=1153078&view=diff ============================================================================== --- tomcat/tc5.5.x/trunk/container/webapps/docs/config/context.xml (original) +++ tomcat/tc5.5.x/trunk/container/webapps/docs/config/context.xml Tue Aug 2 09:27:21 2011 @@ -464,7 +464,7 @@ by nesting a <a href="valve.html">Valve</a> element like this:</p> <source> -<Context path="/examples" ...> +<Context> ... <Valve className="org.apache.catalina.valves.AccessLogValve" prefix="localhost_access_log." suffix=".txt" @@ -652,7 +652,7 @@ lifecycle events. Configuration of such a listener looks like this:</p> <source> -<Context path="/examples" ...> +<Context> ... <Listener className="com.mycompany.mypackage.MyListener" ... > ... @@ -680,7 +680,7 @@ Example filter declarations:</p> <source> -<Context path="/examples" ...> +<Context> ... <Valve className="org.apache.catalina.valves.RemoteHostValve" allow=".*\.mycompany\.com|www\.yourcompany\.com"/> Modified: tomcat/tc5.5.x/trunk/container/webapps/docs/jndi-datasource-examples-howto.xml URL: http://svn.apache.org/viewvc/tomcat/tc5.5.x/trunk/container/webapps/docs/jndi-datasource-examples-howto.xml?rev=1153078&r1=1153077&r2=1153078&view=diff ============================================================================== --- tomcat/tc5.5.x/trunk/container/webapps/docs/jndi-datasource-examples-howto.xml (original) +++ tomcat/tc5.5.x/trunk/container/webapps/docs/jndi-datasource-examples-howto.xml Tue Aug 2 09:27:21 2011 @@ -207,8 +207,7 @@ resource to your <a href="config/context <p>For example: <source> -<Context path="/DBTest" docBase="DBTest" - reloadable="true" crossContext="true"> +<Context> <!-- maxActive: Maximum number of dB connections in pool. Make sure you configure your mysqld max_connections large enough to handle @@ -412,8 +411,7 @@ The Context element should look somethin </p> <source> -<Context path="/someApp" docBase="someApp" - crossContext="true" reloadable="true"> +<Context> <Resource name="jdbc/postgres" auth="Container" type="javax.sql.DataSource" driverClassName="org.postgresql.Driver" Modified: tomcat/tc5.5.x/trunk/container/webapps/docs/manager-howto.xml URL: http://svn.apache.org/viewvc/tomcat/tc5.5.x/trunk/container/webapps/docs/manager-howto.xml?rev=1153078&r1=1153077&r2=1153078&view=diff ============================================================================== --- tomcat/tc5.5.x/trunk/container/webapps/docs/manager-howto.xml (original) +++ tomcat/tc5.5.x/trunk/container/webapps/docs/manager-howto.xml Tue Aug 2 09:27:21 2011 @@ -72,7 +72,7 @@ Manager web application <code>Context</c <code>$CATALINA_HOME/conf/[enginename]/[hostname]</code> folder. Here is an example: <pre> -<Context path="/manager" privileged="true" +<Context privileged="true" docBase="/usr/local/kinetic/tomcat5/server/webapps/manager"> </Context> </pre> @@ -166,8 +166,7 @@ could be restricted by the remote IP add <code>RemoteAddrValve</code> or <code>RemoteHostValve</code>. Here is an example of restricting access to the localhost by IP address: <pre> -<Context path="/manager" privileged="true" - docBase="/usr/local/kinetic/tomcat5/server/webapps/manager"> +<Context privileged="true"> <Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="127\.0\.0\.1"/> </Context> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org