On 4 Dec 2011, at 16:17, Blaxton <blaxx...@yahoo.com> wrote: > > > > > ________________________________ > From: André Warnier <a...@ice-sa.com> > To: Tomcat Users List <users@tomcat.apache.org> > Sent: Sunday, December 4, 2011 6:51:58 PM > Subject: Re: MVC or Model2 with Tomcat > > Blaxton wrote: >> I have created ROOT directory and placed index.jsp in ROOT directory >> the same as your example: >> /path/to/appbase/ROOT/index.jsp -> myhost.com/index.jsp >> >> but that didn't work. >> >> I followed following instructions but those didn't work either. >> >> http://www.jguru.com/faq/view.jsp?EID=91006 >> >> http://wiki.apache.org/tomcat/HowTo#How_do_I_make_my_web_application_be_the_Tomcat_default_application.3F >> >> is there any thing else I should do to work this out? >> > > I wrote that second faq, but I don't see what it has to do with your problem. > > You haven't answered Pid's question : > >> Why do you need to do that to implement MVC? > > Nor his second question : > >> Without more information about your config, e.g. workers.properties it's >> impossible to tell why this didn't work. > > And please, do not top-post. It is very hard to follow a discussion when you > have to jump up and down in the mesage to understand what each phrase relates > to. > > Also, thank you for providing the versions of Apache httpd and Tomcat > up-front. > But "mod_jk version 2", that does not exist. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > My bad, the subject should have been "serving .jsp files from apache document > root" > I just want to access my website as follow: > www.mydomain.com/index.jsp > > the same as the solustion you wrote, but that solustion didn't work for me. > maybe because in that solution you were talking about > CATALINA_BASE/webapps/ROOT directory > and I created CATALINA_BASE/webapps/myapplication/ROOT directory. > > can we have ROOT directory for each application ? > like: > > CATALINA_BASE/webapps/ROOT > CATALINA_BASE/webapps/firstapp/ROOT > CATALINA_BASE/webapps/secondapp/ROOT
No, you can't. None of the docs day you can. ROOT is the special name for the default application, which serves resources from / and handles all requests which are not handled by other applications. Putting ROOT inside other apps just results in publishing that whole dir as /appname/ROOT. If you don't provide other details of your config, no-one here will be able to help, without a really, really lucky guess. p > anyway, here is the out put of the package query on my FreeBSD box: > ap22-mo_jk-ap2-1.2.30_1 Apache2 JK module for connecting to Tomcat using AJP1X --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org