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, -- Hassan Schroeder ----------------------------- [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]