ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Deploying Web Applications to Tomcat
Subject:   Virtual Directory?
Date:   2002-10-17 09:16:18
From:   anonymous2
In production, the application is accessed with
http://host.com/apps/MyApp/login. The webserver forwards all urls with apps/ to the servlet container. The servlet container considers MyApp to be the application, and has no knowledge that it was forwarded with a url with /apps/


I would like to move this application to tomcat standalone on my machine to work on it. However, the application refers to urls that include the /apps and some that don't. It also uses postRedirect a couple times.


What I need is a way to configure tomcat so that it forwards all urls with apps or without to the same container and thus the same webapp.


Anyone know how to do this?