> From: johnrock [mailto:johnpi...@yahoo.com] > Subject: RE: setup default webapp in tomcat 6 and apache > > What is the best way to configure/deploy an app so that it > will be accessed from the url: > http://localhost/index.jsp
There's nothing wrong with the way you're doing it, and there are certain advantages to keeping your webapps outside of Tomcat's directory structure (e.g., somewhat easier to update Tomcat versions). However, as pid pointed out, the typical way to deploy a webapp is to place its .war file or directory immediately under the <Host> appBase directory. The default webapp *must* be named ROOT (upper case), so that's why using <appBase>/ROOT.war or <appBase>/ROOT or conf/Catalina/localhost/ROOT.xml is necessary to achieve what you want. Note that a webapp is more than just an index.jsp file; there's a whole directory structure that can be used for complex ones, as defined in the servlet spec. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org