In that scenario, yes, you are right.  JSP, class and servlet files need to
be on the Tomcat server.  However, this is one of the reasons there are WAR
files, the Tomcat Manager and Admin apps, and deploy tools, etc.

The point of my original post was that there is no reason to mix static and
dynamic content.  The Tomcat server doesn't need to have any static content
on it unless it needs it (like a properties file, or whatever).  Image
files, etc can all be on the Apache server, since you can reference them
with a valid, non-Tomcat URL.

John

> -----Original Message-----
> From: Jose Antonio Martinez [mailto:lfbbes@;yahoo.es]
> Sent: Monday, November 11, 2002 1:13 PM
> To: Tomcat Users List
> Subject: RE: tomcat + apache (synchronization in different machines )
> 
> 
> but i have the following scene: i have a ftp server in
> the same machine than the apache server, so i use an
> ftp account for uploading my website. i want upload
> jsp files but jpg or php files too. I think the tomcat
> server need to have jsp files localy located , and
> then i must copy or move the jsp files from the apache
> to the tomcat machine. 
> 
> please help me! ,  am i right?. i am very confused at
> this point.
> 
>  --- "Turner, John" <[EMAIL PROTECTED]> escribió: > 
> > It is not necessary to synchronize the directories.
> > 
> > Typically, most people use these mappings for Tomcat
> > requests: "/*.jsp", and
> > "/servlet/*".  Requests for other content would
> > never get to Tomcat.  If you
> > had output from a JSP or servlet that referenced a
> > GIF file, it wouldn't
> > matter.  In your output stream, there would be
> > something like 
> > 
> > <img src="pic.gif">
> > 
> > The client browser will convert that into
> > http://yourhost/pic.gif which is a
> > valid URL, and does not match either of the Tomcat
> > mappings.
> > 
> > John
> > 
> > 
> > > -----Original Message-----
> > > From: Jose Antonio Martinez
> > [mailto:lfbbes@;yahoo.es]
> > > Sent: Monday, November 11, 2002 12:52 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: tomcat + apache (synchronization in
> > different machines )
> > > 
> > > 
> > > Hi everybody,
> > > 
> > > I want to have an apache server in a machine and a
> > > tomcat server in a different machine. I know i can
> > use
> > > mod_jk to redirect jsp/servlets petitions from the
> > > apache to the tomcat server ... but: it seems it
> > is
> > > needed that the webapps directory be the same at
> > both
> > > machines... so i must use a synchronization method
> > (
> > > rsync for example ) am i right?? could it possible
> > to
> > > not replicate the webapps directory from the
> > apache to
> > > the tomcat machine?
> > > 
> > > Thanks.
> > > 
> > >
> >
> _______________________________________________________________
> > > Yahoo! Messenger
> > > Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
> > > Descárgalo ya desde http://messenger.yahoo.es
> > > 
> > > --
> > > To unsubscribe, e-mail:   
> > >
> > <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
> > > For additional commands, e-mail: 
> > > <mailto:tomcat-user-help@;jakarta.apache.org>
> > > 
> > 
> > --
> > To unsubscribe, e-mail:  
> > <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
> > For additional commands, e-mail:
> > <mailto:tomcat-user-help@;jakarta.apache.org>
> >  
> 
> _______________________________________________________________
> Yahoo! Messenger
> Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
> Descárgalo ya desde http://messenger.yahoo.es
> 
> --
> To unsubscribe, e-mail:   
<mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@;jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>

Reply via email to