Hi,
My best guess is: yes, you need a different role for every conext. If you
want one username for different context I think you should use:
<user name="admin" password="admin" roles="admin, ctxt1, ctxt2, ..."/>
But I'm not sure about this. I don't think this is well documented either.
Any ideas are appreciated.
About "Alias", "Context" and "ApJServMount":
--------------------------------------------
- The Alias directive allows documents to be stored in the local filesystem
other than under the DocumentRoot. URLs with a (%-decoded) path beginning
with url-path will be mapped to local files beginning with
directory-filename.
Example:
Alias /image /ftp/pub/image
A request for http://myserver/image/foo.gif would cause the server to return
the file /ftp/pub/image/foo.gif.
(from Apache manual)
- ApJServMount mounts a zone to a URL. It connects Apache to JServ/Tomcat.
For more info about this you should read the documentation that comes with
JServ
- Each Context represents a path in the Tomcat hierarchy where you place a
web application.
regards,
Kenneth
>From: "Thomas Klein" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: Tomcat Administration Tools
>Date: Fri, 09 Mar 2001 15:37:28 +0100
>
>I did look at your previous mail of course, before sending my help request.
>but
>it did not seem to work...
>
>I updated tomcat-users.xml with :
> <user name="admin" password="admin" roles="admin" />
>I updated server.xml with :
> <Context path="/admin"
> docBase="webapps/admin"
> crossContext="true"
> debug="0"
> reloadable="true"
> trusted="true" >
> </Context>
>
>hmmm, I'm sorry Kenneth, I did not restart Tomcat... :-0
>OK, Thanks, now it works well ! :-)
>
>But I'm still not comfortable with the way it works...
>I understand the role name must have the same value as the context path, is
>that right ?
>Then, do you have to create a new role in tomcat-users.xml for each context
>defined in server.xml ?
>Can't several contexts share the same role ?
>
>
>Actually, I guess I mix "Alias", "Context", "ApJServMount" and "jkMount"...
>I'm lost in the configuration files.
>Which one is used for what ???
>Could somebody rescue me ?
>
>Thomas
>
>
>Kenneth Westelinck wrote:
>
> > Hi,
> >
> > For the first question, please have a look at: "Re: what is the password
>of
> > tomcat admin".
> > I haven't tried it yet, but I think the admin is being used as a
>graphical
> > tool to create and delete a context. If you prefer the non graphical
>way,
> > just edit the server.xml file.
> >
> > regards,
> >
> > Kenneth
> >
> > >From: "Thomas Klein" <[EMAIL PROTECTED]>
> > >Reply-To: [EMAIL PROTECTED]
> > >To: Tomcat User List <[EMAIL PROTECTED]>
> > >Subject: Tomcat Administration Tools
> > >Date: Fri, 09 Mar 2001 14:03:10 +0100
> > >
> > >Hello All !
> > >Three-questions-in-one :
> > >
> > >Question 1 : What's the use of the "Tomcat Administration Tools"
> > >(http://localhost:8080/admin/index.html) page ?
> > >
> > >From there I get 2 links :
> > >- "Context Admin"
> > >(http://localhost:8080/admin/contextAdmin/contextAdmin.html),
> > >- "Snoop" (http://localhost:8080/examples/jsp/snp/snoop.jsp) which
>seems
> > >to be just an example.
> > >
> > >The problem is I can't access "Context Admin". A Login/Password is
> > >required (!)
> > >I looked into "server.xml" and "tomcat-users.xml" but I couldn't figure
> > >how the roles defined in tomcat-users are associated to the context
> > >defined in server.xml...
> > >
> > >Question 2 : Could someone explain how it works ?
> > >Question 3 : How should I configure my Tomcat server to get in
> > >"ContextAdmin" from the Tomcat Administration Tools page ?
> > >
> > >Thanks for your help.
> > >
> > >Thomas
> > >(Windows NT4 + JDK 1.3 + Apache 1.3.14 + Tomcat 3.2.1)
> > ><< r7972c.vcf >>
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, email: [EMAIL PROTECTED]
> >
> >
>_________________________________________________________________________
> > Get Your Private, Free E-mail from MSN Hotmail at
>http://www.hotmail.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
><< r7972c.vcf >>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]