2013/1/25 bxqdev <bxq...@themailbay.com>: >> >> Anyway I would say a context.xml file in conf/catalina/path1 (the >> hostname)/path1.xml (the context name) should do the trick? >> Place the webapp outside the appbase of the hosts and then point the >> docbase to the webapp (or just drop the .war with two >> different names in the appbases of the two hosts) :) > > > i want to have one instance of webapp, > which has two paths, > and each of the paths serves the root of different domains > > once again: > * one webapp > * has 2 different paths: "/path1" and "/path2" > * served on 2 domains > * when user goes to http://path1.com/ -> {webapp}/path1 is served as root > path > * when user goes to http://path2.com/ -> {webapp}/path2 is served as root > path > > is it possible? >
Two different instances of the same webapp at different hosts - easy. E.g. the manager webapp is deployed in such way to the virtual hosts. One instance mapped to different paths - impossible. What value should be returned by javax.servlet.ServletContext.getContextPath() ? Thought it is possible to apply urlrewriting, either at HTTPD or at Tomcat. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org