scottwerden at G Mail dot com escreveu:
Apache is designed for being a static-content web server. It fully
understands type-maps for mapping Content-type to a file type. It also
is much better than Tomcat for mapping specific file-system directories
to URLs and for excluding access to certain directories. You can also
easily use a single instance of Apache to front-end multiple web-sites
and select the correct set of web pages to display based on request
URL. Tomcat of course is more suited for dishing up dynamic content. It
is fine for a simple web site but for a large web site with a mix of
static and dynamic content you are better off to have Apache front-end
all the static content and hand off the dynamic pages to Tomcat.
My point was that with the apr, my understanding is that it uses native
os calls via a JNI wrapper for static content. I've also used mod_jk
and my inclination is that since apr is simpler to configure I need to
see a compelling reason to use apache. Doesn't the apr largely nullify
the static content argument ?
That does not however impact your points concerning directory mapping
flexibility and fronting multiple web sites. I'm talking strictly about
static content and the apr vs configuring apache and mod_jk (or
mod_jk2, etc). And by static content I'm referring to many large gifs,
etc at the root of the war.
Robert
http://www.braziloutsource.com/