Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

CTR: docs

Add RemoteAddrValve to Manager configuration examples.
It is backport of r1456721



git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@1457227 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
commit 8f9e8c9ba3a2172eddcadc2b1b9bb2f2584c6490 1 parent df9ba20
Konstantin Kolinko authored
Showing with 10 additions and 5 deletions.
  1. +2 −0  RUNNING.txt
  2. +8 −5 webapps/docs/manager-howto.xml
View
2  RUNNING.txt
@@ -314,6 +314,8 @@ The file will look like the following:
<?xml version="1.0" encoding="UTF-8"?>
<Context docBase="${catalina.home}/webapps/manager"
antiResourceLocking="false" privileged="true" useHttpOnly="true" >
+ <Valve className="org.apache.catalina.valves.RemoteAddrValve"
+ allow="127\.0\.0\.1" />
</Context>
See Deployer chapter in User Guide and Context and Host chapters in the
View
13 webapps/docs/manager-howto.xml
@@ -72,8 +72,11 @@ Manager web application <code>Context</code> to a new host install the
<code>$CATALINA_BASE/conf/[enginename]/[hostname]</code> folder. Here is an
example:</p>
<pre>
-&lt;Context path="/manager" privileged="true"
- docBase="/usr/local/tomcat6/webapps/manager"&gt;
+&lt;Context
+ docBase="/usr/local/tomcat6/webapps/manager"
+ antiResourceLocking="false" privileged="true" useHttpOnly="true"&gt;
+ &lt;Valve className="org.apache.catalina.valves.RemoteAddrValve"
+ allow="127\.0\.0\.1" /&gt;
&lt;/Context&gt;
</pre>
@@ -174,9 +177,9 @@ could be restricted by the remote IP address or host by adding a
<code>RemoteAddrValve</code> or <code>RemoteHostValve</code>. Here is
an example of restricting access to the localhost by IP address:</p>
<pre>
-&lt;Context privileged="true"&gt;
- &lt;Valve className="org.apache.catalina.valves.RemoteAddrValve"
- allow="127\.0\.0\.1"/&gt;
+&lt;Context antiResourceLocking="false" privileged="true" useHttpOnly="true"&gt;
+ &lt;Valve className="org.apache.catalina.valves.RemoteAddrValve"
+ allow="127\.0\.0\.1"/&gt;
&lt;/Context&gt;
</pre>
</section>
Please sign in to comment.
Something went wrong with that request. Please try again.