Hello,
you don't have to customize the manager to achieve this:
Simply include a Realm definition for each manager of each host. Like this:
<Host myhost1 ....
<Context cookies="true"
crossContext="false" debug="0" displayName="Manager"
docBase="/opt/tomcat/server/webapps/manager"
path="/manager" privileged="true" reloadable="false"
swallowOutput="false"
useNaming="true" >
<Realm className="org.apache.catalina.realm.MemoryRealm" debug="1"
pathname="/www/host1/tomcat/app-users.xml" />
</Context>
</Host>
This way each host has a different User Database.
If you want to disable some features of the manager, a simple patch to the
HtmlManagerServlet would do also.
Otherwise you could do "subclassing" by filtering all requests through another
servlet. How about this?
Regards,
Reinhard
Am Dienstag, 17. Juni 2003 16:04 schrieb Maxime Colas des Francs:
> Hello
>
> I use tomcat with multiple virtual host.
> I want to open access to Tomcat Manager for all virtual host
> "independently" only for list/start/stop their web applications from an
> html page.
>
> My first idea was to extends the
> org.apache.catalina.servlets.ManagerServlet and insert it in manager
> application.
>
> In this case, i have to fight with a lot of security contraints ?
>
> Is there a better solution, documentation ?
>
> thks !
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]