tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Phillips <m...@phillipsmarketing.biz>
Subject Re: setup for web designers?
Date Tue, 13 Dec 2005 17:55:58 GMT
I have never tested the two configurations, so your information is very 
helpful. I was just going on what the tomcat docs say.

Mark

On Tuesday 13 December 2005 10:03 am, JT Neville wrote:
> >>From what I have read, you get better performance if you let
> >>tomcat serve the static stuff as well as the jsps
>
> I've been running Tomcat for three years now, and I have to disagree.  In
> my experience, Tomcat isn't as robust at serving the static content as
> other old school webserver daemons.  We did/do significant testing and saw
> drop-offs at different plateaus when scaling to Enterprise level
> user/transactions.
>
> I can't speak for the latest releases, as they are still in
> development/testing here for us (we migrate slowly) so your mileage may
> vary.
>
> -----Original Message-----
> From: Mark Phillips [mailto:mark@phillipsmarketing.biz]
> Sent: Tuesday, December 13, 2005 8:47 AM
> To: Tomcat List
> Subject: Re: setup for web designers?
>
> Rusty,
>
> From what I have read, you get better performance if you let tomcat serve
> the
> static stuff as well as the jsps. Check the tomcat docs for a discussion of
> this topic.
>
> However, if you still want to put tomcat behind apache, take a look at this
> article - tomcat.apache.org/tomcat-4.1-doc/ssi-howto.html (the link is down
> now - try it in a while) or google "tomcat ssi". The gist of the article is
> that you need to download a jar file, add it to your classpath, and then
> tomcat will serve ssi directives correctly.
>
> Mark
>
> On Monday 12 December 2005 11:26 pm, rusty@grunt.berkeley.edu wrote:
> > I'm talking about having tomcat behind apache, with apache serving
> > static content and tomcat serving generated html (or whatever)
> > content.  Your jsp include suggestion would only work for static
> > content in the tomcat dir.
> >
> > See below after your included message my response to Martin, which may
> > help explain what I'm talking about.
> >
> >    From: Mark Phillips <mark@phillipsmarketing.biz>
> >    Organization: Phillips Marketing, Inc.
> >    To: users@tomcat.apache.org
> >    Subject: Re: setup for web designers?
> >    Date: Mon, 12 Dec 2005 21:20:44 -0700
> >    Cc: rusty+tomcat@grunt.berkeley.edu,
> >     "users@tomcat.apache.o" <users@tomcat.apache.org>
> >
> >    Try using <%@ include file="header.html" %> instead.
> >
> >    Mark
> >
> >    On Monday 12 December 2005 06:29 pm, rusty+tomcat@grunt.berkeley.edu
>
> wrote:
> >    > How do people set up their tomcat so that the web designers can work
> >    > on the static content and the programmers can work on the jsp stuff
> >    > without stepping on each other's toes?
> >    >
> >    > In my case the web designers have already been working with apache
> >    > with their files in /usr/local/apache/htdocs.
> >    >
> >    > My first thought is to put tomcat behind apache with mod_jk but
> >    > after some minimal testing I discovered that apache server side
> >    > includes don't work; for example, if the html from my jsp has
> >    > <!--#include virtual="/header.html"--> that line isn't replaced and
> >    > is sent to the browser.
> >    >
> >    >
> >    > --------------------------------------------------------------------
> >    >- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For
> >    > additional commands, e-mail: users-help@tomcat.apache.org
> >
> >    --
> >    Mark Phillips
> >    Phillips Marketing, Inc
> >    mark@phillipsmarketing.biz
> >    602 524-0376
> >    480 945-9197 fax
> >
> >
> >  Date: 12 Dec 2005 22:17:29 -0800
> >  From:  <rusty@grunt.berkeley.edu>
> >  To: mgainty@hotmail.com
> >  Subject: Re: setup for web designers?
> >
> >  I did look at that but that's just for apache.  If you think about it,
> >  the two directives
> >
> >  	   AddType text/html .shtml
> >  	   AddHandler server-parsed .shtml
> >
> >  tell apache to look at the extensions of the files, on disk.  What I'm
> >  talking about is html data that's coming to apache directly over the
> >  ajp13 socket, from tomcat, in which case there's no file extension.
> >  When you run tomcat connected to apache with mod_jk you're running
> >  tomcat behind apache.  The output from tomcat is piped through apache
> >  and then sent to the browser.  Going the other way, the requests from
> >  the browser go through apache and are sent to tomcat.
> >
> >  I need some way to turn on the "AddHandler server-parsed" for
> >  everything coming in to apache from tomcat over the ajp13 mod_jk
> >  socket.  Or some way to make it think that everything coming from
> >  tomcat is an .shtml file.
> >
> >     From: "Martin Gainty" <mgainty@hotmail.com>
> >     To: <rusty+tomcat@grunt.berkeley.edu>
> >     Subject: Re: setup for web designers?
> >     Date: Mon, 12 Dec 2005 21:47:18 -0500
> >
> >     This is a multi-part message in MIME format.
> >
> >     ------=_NextPart_000_0061_01C5FF65.9FD7D8B0
> >     Content-Type: text/plain;
> >  	   charset="iso-8859-1"
> >     Content-Transfer-Encoding: quoted-printable
> >
> >     Rusty
> >     Take a look at =
> >
> > http://httpd.apache.org/docs/1.3/howto/ssi.html#configuringyourservertope
> >= rmitssi
> >
> >
> >     Configuring your server to permit SSI
> >     To permit SSI on your server, you must have mod_include installed and
>
> =
>
> >     enabled. Additionally, you must have the following directive either
> > in = your httpd.conf file, or in a .htaccess file:
> >
> >  	   Options +Includes
> >     This tells Apache that you want to permit files to be parsed for SSI
> > = directives. Note that most configurations contain multiple Options =
> > directives that can override each other. You will probably need to apply
> > = the Options to the specific directory where you want SSI enabled
>
> in
>
> > = order to assure that it gets evaluated last.
> >
> >     Not just any file is parsed for SSI directives. You have to tell
>
> Apache
>
> > = which files should be parsed. There are two ways to do this. You can =
> > tell Apache to parse any file with a particular file extension, such as =
> > shtml, with the following directives:
> >
> >  	   AddType text/html .shtml
> >  	   AddHandler server-parsed .shtml
> >     HTH,Martin
> >
> >     ------ Original Message -----=20
> >     From: <rusty+tomcat@grunt.berkeley.edu>
> >     To: "users@tomcat.apache.o" <users@tomcat.apache.org>
> >     Sent: Monday, December 12, 2005 8:29 PM
> >     Subject: setup for web designers?
> >
> >     > How do people set up their tomcat so that the web designers can
> >     > work =
> >
> >     on the=20
> >
> >     > static content and the programmers can work on the jsp stuff
> >     > without=20 stepping on each other's toes?
> >     >=20
> >     > In my case the web designers have already been working with apache
> >     > =
> >
> >     with=20
> >
> >     > their files in /usr/local/apache/htdocs.
> >     >=20
> >     > My first thought is to put tomcat behind apache with mod_jk but
>
> after
>
> >     > =
> >
> >     some=20
> >
> >     > minimal testing I discovered that apache server side includes don't
>
> =
>
> >     work;=20
> >
> >     > for example, if the html from my jsp has <!--#include=20
> >     > virtual=3D"/header.html"--> that line isn't replaced and is sent to
>
> =
>
> >     the=20
> >
> >     > browser.=20
> >     >=20
> >     >=20
>
> ---------------------------------------------------------------------
>
> >     > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> >     > For additional commands, e-mail: users-help@tomcat.apache.org
> >     >=20
> >
> >     ------=_NextPart_000_0061_01C5FF65.9FD7D8B0
> >     Content-Type: text/html;
> >  	   charset="iso-8859-1"
> >     Content-Transfer-Encoding: quoted-printable
> >
> >     <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> >     <HTML><HEAD>
> >     <META http-equiv=3DContent-Type content=3D"text/html; =
> >     charset=3Diso-8859-1">
> >     <META content=3D"MSHTML 6.00.2900.2769" name=3DGENERATOR>
> >     <STYLE></STYLE>
> >     </HEAD>
> >     <BODY>
> >     <DIV><FONT face=3DArial size=3D2>Rusty<BR>Take a look at </FONT><A=20
> >
> > href=3D"http://httpd.apache.org/docs/1.3/howto/ssi.html#configuringyourse
> >= rvertopermitssiH"><FONT=20
> >     face=3DArial=20
> >
> > size=3D2>http://httpd.apache.org/docs/1.3/howto/ssi.html#configuringyours
> >= ervertopermitssi<BR><BR></FONT></A>
> >     <H2><A id=3Dconfiguringyourservertopermitssi=20
> >     name=3Dconfiguringyourservertopermitssi><FONT face=3DArial =
> >     size=3D2>Configuring your=20
> >     server to permit SSI</FONT></A></H2>
> >     <P><FONT face=3DArial size=3D2>To permit SSI on your server, you
must
>
> =
>
> >     have </FONT><A=20
> >     href=3D"http://httpd.apache.org/docs/1.3/mod/mod_include.html"><FONT
> > = face=3DArial=20
> >     size=3D2>mod_include</FONT></A><FONT face=3DArial size=3D2>
installed
>
> =
>
> >     and enabled.=20
> >     Additionally, you must have the following directive either in your =
> >     httpd.conf=20
> >     file, or in a .htaccess file:</FONT></P><PRE><FONT face=3DArial
=
> >     size=3D2>        Options +Includes
> >     </FONT></PRE>
> >     <P><FONT face=3DArial size=3D2>This tells Apache that you want to
> > permit = files to be=20
> >     parsed for SSI directives. Note that most configurations contain =
> >     multiple=20
> >     </FONT><A =
> >
> > href=3D"http://httpd.apache.org/docs/1.3/mod/core.html#options"><FONT=20
> > face=3DArial size=3D2>Options</FONT></A><FONT face=3DArial size=3D2>
=
> > directives that can=20
> >     override each other. You will probably need to apply the Options to
>
> the
>
> > = specific=20
> >     directory where you want SSI enabled in order to assure that it gets
> > = evaluated=20
> >     last.</FONT></P>
> >     <P><FONT face=3DArial size=3D2>Not just any file is parsed for SSI
=
> >     directives. You=20
> >     have to tell Apache which files should be parsed. There are two ways
>
> to
>
> > = do this.=20
> >     You can tell Apache to parse any file with a particular file
>
> extension,
>
> > = such as=20
> >     shtml, with the following directives:</FONT></P><PRE><FONT
>
> face=3DArial
>
> > = size=3D2>        AddType text/html .shtml
> >  	   AddHandler server-parsed .shtml
> >     <BR>HTH,<BR>Martin-</FONT></PRE></DIV>
> >     <DIV><FONT face=3DArial size=3D2>----- Original Message ----- </FONT>
> >     <DIV><FONT face=3DArial size=3D2>From: &lt;</FONT><A=20
> >     href=3D"mailto:rusty+tomcat@grunt.berkeley.edu"><FONT face=3DArial=20
> >     size=3D2>rusty+tomcat@grunt.berkeley.edu</FONT></A><FONT
> > face=3DArial=20 size=3D2>&gt;</FONT></DIV>
> >     <DIV><FONT face=3DArial size=3D2>To: "</FONT><A=20
> >     href=3D"mailto:users@tomcat.apache.o"><FONT face=3DArial=20
> >     size=3D2>users@tomcat.apache.o</FONT></A><FONT face=3DArial
> > size=3D2>" = &lt;</FONT><A=20
> >     href=3D"mailto:users@tomcat.apache.org"><FONT face=3DArial=20
> >     size=3D2>users@tomcat.apache.org</FONT></A><FONT face=3DArial=20
> >     size=3D2>&gt;</FONT></DIV>
> >     <DIV><FONT face=3DArial size=3D2>Sent: Monday, December 12, 2005
> > 8:29=20 PM</FONT></DIV>
> >     <DIV><FONT face=3DArial size=3D2>Subject: setup for web=20
> >     designers?</FONT></DIV></DIV>
> >     <DIV><FONT face=3DArial><BR><FONT size=3D2></FONT></FONT></DIV><FONT
> > = face=3DArial=20
> >     size=3D2>&gt; How do people set up their tomcat so that the web =
> >     designers can work=20
> >     on the <BR>&gt; static content and the programmers can work on the
> > jsp = stuff=20
> >     without <BR>&gt; stepping on each other's toes?<BR>&gt;
<BR>&gt; In
> > my = case the=20
> >     web designers have already been working with apache with <BR>&gt;
>
> their
>
> > = files in=20
> >     /usr/local/apache/htdocs.<BR>&gt; <BR>&gt; My first thought
is to put
>
> =
>
> >     tomcat=20
> >     behind apache with mod_jk but after some <BR>&gt; minimal testing
I =
> >     discovered=20
> >     that apache server side includes don't work; <BR>&gt; for example,
if
>
> =
>
> >     the html=20
> >     from my jsp has &lt;!--#include <BR>&gt;
>
> virtual=3D"/header.html"--&gt;
>
> > = that line=20
> >     isn't replaced and is sent to the <BR>&gt; browser. <BR>&gt;
<BR>&gt;
>
> =
>
> >     <BR>&gt;=20
> >
> > ---------------------------------------------------------------------<BR>
> >= &gt; To=20
> >     unsubscribe, e-mail: </FONT><A=20
> >     href=3D"mailto:users-unsubscribe@tomcat.apache.org"><FONT
> > face=3DArial=20
> > size=3D2>users-unsubscribe@tomcat.apache.org</FONT></A><BR><FONT
=
> > face=3DArial=20
> >     size=3D2>&gt; For additional commands, e-mail: </FONT><A=20
> >     href=3D"mailto:users-help@tomcat.apache.org"><FONT face=3DArial=20
> >     size=3D2>users-help@tomcat.apache.org</FONT></A><BR><FONT
> > face=3DArial = size=3D2>&gt;=20
> >     <BR>&gt;</FONT></BODY></HTML>
> >
> >     ------=_NextPart_000_0061_01C5FF65.9FD7D8B0--

-- 
Mark Phillips
Phillips Marketing, Inc
mark@phillipsmarketing.biz
602 524-0376
480 945-9197 fax

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message