On Thu, 2010-04-29 at 09:30 -0500, Caldarale, Charles R wrote: > > From: Jon Kristensen [mailto:i...@jonkristensen.com] > > Subject: Adding or Mount a Sub-Context or Archive to a Path > > > > I'm using Apache 2.2.9, Tomcat 6.0.26, and mod_jk. I'm forwarding all > > requests from Apache to Tomcat. > > Then why are you bothering with httpd? Remove it and simplify your life (and > improve performance).
I have other pages requiring httpd. > > <Context path="" docBase="jon3d-website-0.0.1.0-SNAPSHOT.war" > > Putting <Context> elements in server.xml is a really, really bad idea. The > above is guaranteed to give you double deployment. Best to just remove the > <Context> element, and rename your .war file to ROOT.war. What if I want to deploy other sites to the server? > > Now, I want to be able to attach (static) content from a WAR, or even > > better, a ZIP file, to a subdirectory, like http://jon3d.org/WebStart. > > Then put the static content in webapps/WebStart.war; no <Context> element is > needed. You cannot use the .zip name, but you can just change the extension > of the .zip file to .war (they're the same format). That works, thanks! > - 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. -- Jon Kristensen <i...@jonkristensen.com> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org