I'm working with Tomcat 5.0.28 and i can't find a Host tag where docBase points to root. And i tought all the hosts-config files are under conf/Catalina/localhost. Also there isn't a ROOT.xml, where there is so for all my other web-apps. So i added a Context-tag to server.xml as follows
and that does the job also, but in my web.xml of my web-app i got some env-entries and there aren't found when i go to this app with http://localhost:8080/ (So i guess i also have to put the web.xml of my app under the ROOT/WEB-INF/ )
if i go to url http://localhost:8080/ i got tomcat's homepage. Is there a possibility to disable this? I deleted the index.jsp and added a index.html saying "Forbidden, no access for you", and changed the welcome-list in the web.xml under ROOT/WEB-INF/
Another option would be to change the "path" attribute in your apps <Host> to be "/" and then rename the one that said "/" before to be "/oldroot" or delete it altogether!
This i don't get. Could you explain little bit more please
Joined: Oct 04, 2003
Ok, pretty much ignore anything I said in the post above.
What I think you need to do is to edit $TOMCAT_HOME/webapps/ROOT/WEB-INF/web.xml and remove the mapping of index.jsp
Then edit your own web.xml in /webapps/yourapp/WEB-INF and create a similar mapping, so you may want to map "/index.jsp" or just "/"