On our system, we've changed the uri for admin and manager to
/tomcat/admin and /tomcat/manager, respectively.
This to me seems like a good and obvious change since /admin is way to
generic and too many things want to own that name.
The change is made in admin.xml and manager.xml, in the webapps
directory.  Since the applications themselves do not live in webapps,
and since you can rename admin.xml and manager.xml and change their
context names, this should not be a difficult fix to get it out of your
way.

Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., The Leading Provider of Net Business Solutions
http://www.novell.com

>>> [EMAIL PROTECTED] 4/3/03 11:10:16 PM >>>
Yep, what you've said is definitely correct. However, right now my
problem
is that I've been put on a project which has already been made to
redirect
to http://localhost:8080/admin/adminlistcompanies.jsp. We use Action
classes
which redirect to URLs listed in a properties file. This properties
file
makes no notice of which context it is in. It doesn't matter if I put
the
whole web site in a separate context - clicking on the link will
redirect to
http://localhost:8080/admin/adminlistcompanies.jsp. 

The person who did something to overcome this has now left the
company!!!!
So, I'm in the bad position of trying to figure out how it was avoided
to
redirect to the wrong context (right now it redirects to
http:/localhost:8080/admin/login.jsp instead of
http://localhost:8080/admin/adminlistcompanies.jsp.

If you could give me some suggestions it would be most appreciated.

Thanks.



-----Original Message-----
From: Jacob Kjome [mailto:[EMAIL PROTECTED] 
Sent: Friday, 4 April 2003 3:53 PM
To: Tomcat Users List
Subject: Re: Disabling redirect to admin



This is the very reason why ROOT is not a good idea to use for your 
context.  If you want a default context, just add an index.html to the
ROOT 
context to redirect to the context you want people to be at.

For instance:

http://localhost:8080/ 

redirects to...

http://localhost:8080/mycontext/ 

Within "mycontext" you can have any directory hierarchy you want
without 
clashing with the namespaces of other registered contexts on the server

(such as the Tomcat "admin" context).  So, you can now have...

http://localhost:8080/mycontext/admin/ 


Use the root context for nothing other than docs and/or a redirect file
to 
the context you want to have as the default on the server.

Jake

At 03:50 PM 4/4/2003 +1000, you wrote:
>Hi,
>
>I've got a link in my web site which goes to
>http://localhost:8080/admin/adminlistcompanies.jsp. Everytime I click
on
>this link, it goes to the Tomcat web server administration tool login
page.
>
>Is there a way I can disable this so that it goes to the correct URL?
All
my
>files are in webapps/ROOT.
>
>Thanks.
>
>---------------------------------------------------------------------
>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] 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to