In that case, you should follow the suggestion of another reply to your question where they suggested removing the admin context. To do this, you will need to remove the admin.xml file from CATALINA_HOME/webapps and restart Tomcat.


You will also need to be diligent about making sure that no other contexts under the same virtual host (<Host ...>) have naming conflicts with sub directories of your ROOT context.

later,

Jake


At 04:10 PM 4/4/2003 +1000, you wrote:
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]

Reply via email to