You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Maxime Colas des Francs <ma...@sts.ca> on 2003/06/17 16:04:16 UTC

costumize manager

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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: costumize manager

Posted by Jens Skripczynski <sk...@myrealbox.com>.
Hi,

If you subclass a tomcat class and use a functionality, 
that is not directly described in the specs for jsp containers.
, you might run into problems (afaik), when you are
upgrading your tomcat server, since those classes might change and 
might have to make a redisign...

Maxime Colas des Francs:
> 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.

Ciao

Jens Skripczynski
-- 
E-Mail: skripi-lists(at)myrealbox(dot)com

The Golden Rule of Arts and Sciences:
        He who has the gold makes the rules.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: costumize manager

Posted by Reinhard Moosauer <rm...@moosauer.de>.
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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org