<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Azedi Technology</title>
  <link rel="alternate" type="text/html" href="http://azeditech.com/tomcat/configurating-tomcat-manager.html"/>
  <link rel="self" type="application/atom+xml" href="http://azeditech.com/node/24/atom/feed"/>
  <id>http://azeditech.com/node/24/atom/feed</id>
  <updated>2006-05-31T14:04:18-07:00</updated>
  <entry>
    <title>Configuring the Tomcat manager webapp</title>
    <link rel="alternate" type="text/html" href="http://azeditech.com/tomcat/configurating-tomcat-manager.html" />
    <id>http://azeditech.com/tomcat/configurating-tomcat-manager.html</id>
    <published>2006-05-31T13:56:48-07:00</published>
    <updated>2006-05-31T14:04:18-07:00</updated>
    <author>
      <name>kief</name>
    </author>
    <category term="tomcat" />
    <summary type="html"><![CDATA[<p>I like to have the Tomcat manager webapp installed on each instance, so I can play with the webapps, and see how many active sessions there are. To do this, make a file called manager.xml file in the webapps directory of your Tomcat instance. One I like to use is this:</p>
<pre>
    &lt;Context path="/manager"
        docBase="/usr/local/tomcat/server/webapps/manager"
        debug="0"
        privileged="true"&gt;

    &lt;ResourceLink name="users"
            global="UserDatabase"
            type="org.apache.catalina.UserDatabase"/&gt;

    &lt;Valve className="org.apache.catalina.valves.RemoteAddrValve"
</pre>    ]]></summary>
    <content type="html"><![CDATA[<p>I like to have the Tomcat manager webapp installed on each instance, so I can play with the webapps, and see how many active sessions there are. To do this, make a file called manager.xml file in the webapps directory of your Tomcat instance. One I like to use is this:</p>
<pre>
    &lt;Context path="/manager"
        docBase="/usr/local/tomcat/server/webapps/manager"
        debug="0"
        privileged="true"&gt;

    &lt;ResourceLink name="users"
            global="UserDatabase"
            type="org.apache.catalina.UserDatabase"/&gt;

    &lt;Valve className="org.apache.catalina.valves.RemoteAddrValve"
            allow="127.0.0.1,192.168.100.100"/&gt;

&lt;/Context&gt;
</pre><p>
The key bit is the <em>docBase</em> attribute, which needs to point to the webapp in the Tomcat installation directory. I add a RemoteAddrValve to keep evil people from trying to break into the manager.</p>
<p>You'll also need to add a user account with permission to use the manager. Put a file called tomcat-users.xml into the conf directory of the Tomcat instance, which should have something like the following:</p>
<pre>
&lt;tomcat-users&gt;
  &lt;role rolename="manager"/&gt;
  &lt;user username="admin" password="hard2Guess" roles="manager"/&gt;
&lt;/tomcat-users&gt;
</pre><p>
Finally, your server.xml file needs to have a UserDatabase configured. This is in the example configuration files from the Tomcat installation.</p>
    ]]></content>
  </entry>
</feed>
