Thanks for the advice about moving the context tag. I moved it as you suggested and it works the same.
But, that doesn't answer the question, how do I get it so when someone browses to my webapp root they get the default page, say index.jsp, instead of a directory listing. I don't want user's to go to a directory. The reason I ask is none of my pages that use relative urls are displaying correctly (a helloworld.jsp works fine), my suspiscion is this extra directory level is throwing the relative urls off (see http://gus.csbc.vcu.edu:8080/crypto/) On Sat, 2005-11-12 at 18:33, Hassan Schroeder wrote: > Michael Chaplin wrote: > > I'm stumped on a simple issue. I have only one webapp in my > > tomcat5/webapps directory called "crypto" > > > > my context tags within the host tag of my server.xml is: > > > > <Context path="" > > docBase="/usr/share/tomcat5/webapps" > > debug="9" reloadable="true" > > privileged="true" allowLinking="true" > > > </Context> > > <Context path="/crypto" > > docBase="/usr/share/tomcat5/webapps" > > debug="9" reloadable="true" > > privileged="true" allowLinking="true" > > > </Context> > > > > I would expect that browsing to http://gus.csbc.vcu.edu:8080/crypto/ (or > > http://gus.csbc.vcu.edu:8080) would bring up my default page, instead I > > get a directory listing of one directory, crypto, which when I click on > > it, then I get my default page! What's wrong, or is this normal? > > It's doing exactly what you're telling it to, looking for your app's > pages in '/usr/share/tomcat5/webapps' :-) > > However, putting Context elements in server.xml is discouraged. > > You should create a file named (assuming a vanilla install): > > $CATALINA_HOME/conf/Catalina/localhost/ROOT.xml > > :: containing: > > <Context > docBase="/usr/share/tomcat5/webapps/crypto" > debug="9" reloadable="true" > privileged="true" allowLinking="true" > > </Context> > > :: which will make it your default webapp, accessed directly using > "http://gus.csbc.vcu.edu:8080/"... > > HTH,