Re: How to serve two docBases under the same context path

2008-10-23 Thread Johnny Kewl
- Original Message - From: "nlif" <[EMAIL PROTECTED]> To: Sent: Thursday, October 23, 2008 4:56 PM Subject: How to serve two docBases under the same context path Hi all, I am using Tomcat 6, and I have the following problem: I am trying to separate the static content from the dyn

Re: How to serve two docBases under the same context path

2008-10-23 Thread Hassan Schroeder
On Thu, Oct 23, 2008 at 10:23 AM, nlif <[EMAIL PROTECTED]> wrote: > Should my dev and prod environments be identical? Really? So you deploy your > source files? :-) > This is one of many cases in which the development environment does not > match the production environment. Well, "deploying sour

Re: How to serve two docBases under the same context path

2008-10-23 Thread André Warnier
nlif wrote: [...] I will not, like some others (;-)), presume to guess why you want to do this. But I will presume that you have a clear way to distinguish what are links to static content from what are links to dynamic content (e.g. static ends in .html,.jpg,.css etc.. while dynamic ends in .

Re: How to serve two docBases under the same context path

2008-10-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nlif, nlif wrote: > The problem stems from the decision to > separate the web-app and static-content to two projects in SVN, and this is > due to the fact that different people maintain them. This shouldn't be a problem: set your to point to your a

Re: How to serve two docBases under the same context path

2008-10-23 Thread Jeff
On Thu, Oct 23, 2008 at 9:56 AM, nlif <[EMAIL PROTECTED]> wrote: > I am trying to separate the static content from the dynamic content of my > application. In production, I intend to use Apache to serve the static > content, and Tomcat to process requests to the application (mainly JSP's). > This c

Re: How to serve two docBases under the same context path

2008-10-23 Thread nlif
Should my dev and prod environments be identical? Really? So you deploy your source files? :-) This is one of many cases in which the development environment does not match the production environment. And as I explained in my other post, not using Apache will not change my problem. Hassan S

RE: How to serve two docBases under the same context path

2008-10-23 Thread nlif
Theoretically, maybe, but in real-life heavy-duty production environments, I believe using Apache as a front to Tomcat has advantages, in areas as security, load-balancing, caching and scalability. Furthermore, the production architecture is not the issue here, as I've explained in my original po

RE: How to serve two docBases under the same context path

2008-10-23 Thread Caldarale, Charles R
> From: nlif [mailto:[EMAIL PROTECTED] > Subject: How to serve two docBases under the same context path > > In production, I intend to use Apache to serve the static > content, and Tomcat to process requests to the application Why are you wasting your time, energy, and resources to do that? Tomca

Re: How to serve two docBases under the same context path

2008-10-23 Thread Hassan Schroeder
On Thu, Oct 23, 2008 at 7:56 AM, nlif <[EMAIL PROTECTED]> wrote: > I am trying to separate the static content from the dynamic content of my > application. In production, I intend to use Apache to serve the static > content, and Tomcat to process requests to the application (mainly JSP's). > My p