> From: Kevin Jackson [mailto:foamd...@gmail.com] > Subject: Re: tomcat6 configuration best practice? > > We are using httpd as we serve *many* static files too
Tomcat will server static files every bit as well as httpd (especially since you're using APR). > Do we need both the context.xml file and the exploded application > directory structure? You need the <Context> element to define the <Resource> elements used by the webapp. Whether the webapp is deployed as a .war file or exploded directory is irrelevant. When you have a conf/Catalina/[host]/[appName].xml file, the webapp's META-INF/context.xml file is ignored. > just the application directory (which we can name as ROOT) Naming the directory (or .war file) ROOT is only applicable when the webapp is deployed under the <Host> appBase directory. Since you're not deploying your webapp under appBase, the name can be anything you choose; it's the name of the .xml file under conf/Catalina/[host] that determines the webapp path. Make sure you delete any existing ROOT directory (or ROOT.war file) from the <Host> appBase directory. > Can you explain why it would be so wrong to have a symlink at all? I find them to be a significant maintenance issue - easily forgotten when you decide to move things around. Your deployment process (script) should just copy the <Context> element to conf/Catalina/[host]/ROOT.xml and eliminate the potential for problems. - 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