RE: Static content and http.conf

2003-02-18 Thread Turner, John

Tomcat has a JK/JK2 compatible connector configured on port 8009 by default.
There's nothing you need to do to server.xml if you want to use port 8009
except make sure your Hosts and Contexts are configured correctly.

John


> -Original Message-
> From: Kim, Hongkyu [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 18, 2003 12:49 PM
> To: 'Tomcat Users List'
> Subject: RE: Static content and http.conf
> 
> 
> Hi John
> 
> Does server.xml need to be modified to use workers? (ajp13 in 
> your example)
> In my case ajp13 worker is to work on port 8009. How does 
> this incorporate
> into server.xml ? I'm using mod_jk on Apache 1.3 and Tomcat 4.1.
> 
> Thanks in advance.
> 
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, February 18, 2003 12:29 PM
> To: 'Tomcat Users List'
> Subject: RE: Static content and http.conf
> 
> 
> 
> If that is what you want to do, don't use mod_webapp.  
> mod_webapp does not
> separate requests into static or dynamic.  With mod_webapp, 
> ALL requests are
> sent to Tomcat.
> 
> Use JK or JK2.
> 
> JK:
> 
> JkMount /*.jsp ajp13
> JkMount /servlet/* ajp13
> 
> Any request that DOESN'T have ".jsp" or "/servlet/" in the URL will be
> served by Apache, regardless of the location of the DocumentRoot.
> 
> John
> 
> 
> > -Original Message-
> > From: Duma Rolando [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 18, 2003 12:23 PM
> > To: Tomcat Mailing List
> > Subject: Static content and http.conf
> > 
> > 
> > 1)How to configure apache to serve static content placed
> > inside a webapp
> > context?
> > 2)Does this configuration depends on the "paths" used inside 
> > my jsp(i.e.
> > does it works if i use relative paths for the images)?
> > 3)If it depends also on connector used, is the warp connector ok?
> > 4)Is the keepalive directive useful for a correct apache 
> > configuration?
> > 
> > Sorry if i ask so many questions but the problem is only one:
> > how to deploy
> > a webapp with all the static content but lave apache to serve this.
> > Thanks in advance.
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Static content and http.conf

2003-02-18 Thread Kim, Hongkyu
Hi John

Does server.xml need to be modified to use workers? (ajp13 in your example)
In my case ajp13 worker is to work on port 8009. How does this incorporate
into server.xml ? I'm using mod_jk on Apache 1.3 and Tomcat 4.1.

Thanks in advance.

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, February 18, 2003 12:29 PM
To: 'Tomcat Users List'
Subject: RE: Static content and http.conf



If that is what you want to do, don't use mod_webapp.  mod_webapp does not
separate requests into static or dynamic.  With mod_webapp, ALL requests are
sent to Tomcat.

Use JK or JK2.

JK:

JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

Any request that DOESN'T have ".jsp" or "/servlet/" in the URL will be
served by Apache, regardless of the location of the DocumentRoot.

John


> -Original Message-
> From: Duma Rolando [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 18, 2003 12:23 PM
> To: Tomcat Mailing List
> Subject: Static content and http.conf
> 
> 
> 1)How to configure apache to serve static content placed
> inside a webapp
> context?
> 2)Does this configuration depends on the "paths" used inside 
> my jsp(i.e.
> does it works if i use relative paths for the images)?
> 3)If it depends also on connector used, is the warp connector ok?
> 4)Is the keepalive directive useful for a correct apache 
> configuration?
> 
> Sorry if i ask so many questions but the problem is only one:
> how to deploy
> a webapp with all the static content but lave apache to serve this.
> Thanks in advance.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Static content and http.conf

2003-02-18 Thread Turner, John

If that is what you want to do, don't use mod_webapp.  mod_webapp does not
separate requests into static or dynamic.  With mod_webapp, ALL requests are
sent to Tomcat.

Use JK or JK2.

JK:

JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

Any request that DOESN'T have ".jsp" or "/servlet/" in the URL will be
served by Apache, regardless of the location of the DocumentRoot.

John


> -Original Message-
> From: Duma Rolando [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 18, 2003 12:23 PM
> To: Tomcat Mailing List
> Subject: Static content and http.conf
> 
> 
> 1)How to configure apache to serve static content placed 
> inside a webapp
> context?
> 2)Does this configuration depends on the "paths" used inside 
> my jsp(i.e.
> does it works if i use relative paths for the images)?
> 3)If it depends also on connector used, is the warp connector ok?
> 4)Is the keepalive directive useful for a correct apache 
> configuration?
> 
> Sorry if i ask so many questions but the problem is only one: 
> how to deploy
> a webapp with all the static content but lave apache to serve this.
> Thanks in advance.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Static content and http.conf

2003-02-18 Thread Jake Robb
You can not delegate static content to Apache using any currently-available
version of mod_webapp (aka the warp connector).  You need to use mod_jk or
mod_jk2.  Mod_webapp is supposed to gain that ability some time in the
future.

-Jake

- Original Message -
From: "Duma Rolando" <[EMAIL PROTECTED]>
To: "Tomcat Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 18, 2003 12:22 PM
Subject: Static content and http.conf


> 1)How to configure apache to serve static content placed inside a webapp
> context?
> 2)Does this configuration depends on the "paths" used inside my jsp(i.e.
> does it works if i use relative paths for the images)?
> 3)If it depends also on connector used, is the warp connector ok?
> 4)Is the keepalive directive useful for a correct apache configuration?
>
> Sorry if i ask so many questions but the problem is only one: how to
deploy
> a webapp with all the static content but lave apache to serve this.
> Thanks in advance.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Static content and http.conf

2003-02-18 Thread Lajos
Point your Apache DocumentRoot to the same directory the you set in the 
appBase attribute of your  in server.xml. Then, make sure your 
JkMount commands (if you are using mod_jk, that is) are specific to the 
content you want Tomcat to serve, so that Apache will pick up the rest.

Regards,

Lajos


Duma Rolando wrote:
1)How to configure apache to serve static content placed inside a webapp
context?
2)Does this configuration depends on the "paths" used inside my jsp(i.e.
does it works if i use relative paths for the images)?
3)If it depends also on connector used, is the warp connector ok?
4)Is the keepalive directive useful for a correct apache configuration?

Sorry if i ask so many questions but the problem is only one: how to deploy
a webapp with all the static content but lave apache to serve this.
Thanks in advance.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--



   Lajos Moczar
  
Open Source Support, Consulting and Training
  
Cocoon Developer's Handbook
 (www.amazon.com/exec/obidos/tg/detail/-/0672322579)

   _  _
  / \ /
 /___\  /
/ \   /

 http://www.galatea.com -- powered by AzSSL


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Static content via AJP (specifically mod-jk2)

2002-09-30 Thread Mike Jackson

When you use tomcat and apache what is supposed to happen is
that tomcat services the jsp/servlet and apache services the
"static" requests.  IE the html pages and graphics...

What it looks like to me is that you're configuration in the
mod_jk file isn't right, check to make sure that you have a
mapping for the proper directories so that apache can find
the html and other files.

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

> -Original Message-
> From: Raoon Kundi [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 30, 2002 12:02 PM
> To: [EMAIL PROTECTED]
> Subject: Static content via AJP (specifically mod-jk2)
>
>
> Hi,
>
> Tomcat serves *.html's (static content) fine in the stand alone
> mode but the same does not happen when a static file is requested
> through apache using the mod-jk2
>
> I have the following setup ...
>
>   Apache  1.3.26
>   Tomcat  4.1.12
>   Solaris 6
>
> More details are as follows ...
>
>   when accessing stuff on the tomcat side via the AJP connector
>   e.g., a URL of the form http://localhost/myContext/myfile.html
>   I get a 404 error from apache.  Seems like the connector is
>   not validating the request -- or something.  Other requests to
>   the same server but with *.jsp extensions do however work.
>   E.g., a URL of the form http://localhost/myContext/myfile.jsp
>   will work just fine.
>
>   Here is my workers2.properties ...
>
> [shm]
> #file=${serverRoot}/logs/shm.file
> file=/opt/apache/logs/shm.file
> size=1048576
>
> # Example socket channel, override port and host.
> [channel.socket:localhost:8009]
> port=8009
> host=127.0.0.1
>
> # define the worker
> [ajp13:localhost:8009]
> channel=channel.socket:localhost:8009
>
> [uri:/myContext/*]
> worker=ajp13:localhost:8009
>
> #[uri:/myContext/*.html]   < This did not work ...
> #worker=ajp13:localhost:8009
>
> # Map /jkstatus to the status worker.
> # define the worker
> [status:status]
>
> # Uri mapping
> [uri:/jkstatus/*]
> worker=status:status
>
> [logger]
> file=/opt/apache/logs/mod_jk2.log
>
>
> If serving static content is not possible over the jk2 connector
> I would like to know the reasoning behind it.
>
> Thanks in advance ...
>
> Regards,
> --
> Raoon Kundi
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Static content

2002-09-19 Thread Turner, John


It's in the Listener element that calls the ApacheConfig class to
auto-generate mod_jk.conf.  It's only an issue if you are using Tomcat to
auto-generate the mod_jk configuration for Apache.  If you are doing
Apache's mod_jk configuration by hand, it's irrelevant.

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html

Check the section that says "Using ApacheConfig" for more info.

John


> -Original Message-
> From: Rafael Angarita [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 19, 2002 9:25 AM
> To: Tomcat Users List
> Subject: Re: Static content
> 
> 
> John,  where can I find this attribute in server.xml (a default 
> server.xml) in tomcat 3.2.4?... I see nothing there... what's 
> the  xml 
> tab  that belongs this?
> 
> Thanks
> 
> 
> Turner, John wrote:
> 
> >I would add that you need 
> >
> >forwardAll="false"
> >
> >in your Listener configuration in server.xml.  The default 
> is "true", and if
> >"true", ALL requests get passed to Tomcat.
> >
> >John
> >
> >
> >  
> >
> >>-Original Message-
> >>From: Robert L Sowders [mailto:[EMAIL PROTECTED]]
> >>Sent: Wednesday, September 18, 2002 7:02 PM
> >>To: Tomcat Users List
> >>Subject: Re: Static content
> >>
> >>
> >>From your description we can only tell what you expect it to 
> >>do.  To find 
> >>out where the problem is we will need to see your configs.  
> >>httpd.conf 
> >>mod_jk.conf server.xml etc etc.
> >>
> >>Till then we're just guessing.
> >>
> >>rls
> >>
> >>
> >>
> >>
> >>
> >>[EMAIL PROTECTED]
> >>09/18/2002 02:45 PM
> >>Please respond to "Tomcat Users List"
> >>
> >> 
> >>To: [EMAIL PROTECTED]
> >>cc: 
> >>Subject:Static content
> >>
> >>I am using Apache with Tomcat 3.2.4 and am trying to figure 
> >>out how the
> >>connector really works.  I am using mod_jk.  Basically, the 
> >>question I 
> >>have
> >>is:  Does static content get served up by Apache or Tomcat?  
> >>I would like
> >>static content to be served up by Apache, but I'm not 
> >>confident that it is
> >>in my configuration.  My normal configuration is to have all 
> >>of my files,
> >>including static content, reside in the /webapps/app1
> >>directory.  server.xml is configured such that the docbase for this 
> >>context
> >>is "/".  My apache config includes the mod_jk.conf-auto, which
> >>automatically generates a "context" for app1 and JkMount 
> >>directives for
> >>/*.jsp and /servlet/*.  My DocumentRoot in httpd.conf is also 
> >>pointing to
> >>the same directory (/tomcat/webapps/app1).   Up until now, I 
> >>assumed that
> >>Apache was only passing on request for jsps or servlets to 
> >>Tomcat, and 
> >>that
> >>it was serving up static content itself.  However, now I'm 
> >>skeptical and
> >>here is why.  If I change the DocumentRoot to a directory 
> >>outside of the
> >>/tomcat/webapps directory, and place my static content there, 
> >>things seems
> >>to function as expected.  If I add another context in 
> >>/tomcat/webapps/test,
> >>with a docbase of /test and place a static file in that 
> >>context, it stills
> >>gets served up (which I would NOT expect, since my JkMounts 
> >>say to only
> >>pass .jsp and servlet requests).  This leads me to believe 
> >>that Apache is
> >>passing  requests to Tomcat based  on the contexts that it 
> >>knows about 
> >>thru
> >>mod_jk.conf, and not based on the JkMounts defined therein.  
> >>Does anyone
> >>have specifics on how the connector really works?
> >>This correspondence may contain information that is confidential,
> >>proprietary or "non-public personal information", as that 
> >>term is defined
> >>in the Gramm-Leach-Bliley Act (collectively, "Confidential 
> >>Information").
> >>The Confidential Information is disclosed conditioned upon 
> >>your agreement
> >>that you will treat all Confidential Information 
> confidentially and in
> >>accordance with applicable law, ensure that such information 
> >>is not used 
> >&

Re: Static content

2002-09-19 Thread Rafael Angarita

John,  where can I find this attribute in server.xml (a default 
server.xml) in tomcat 3.2.4?... I see nothing there... what's the  xml 
tab  that belongs this?

Thanks


Turner, John wrote:

>I would add that you need 
>
>forwardAll="false"
>
>in your Listener configuration in server.xml.  The default is "true", and if
>"true", ALL requests get passed to Tomcat.
>
>John
>
>
>  
>
>>-Original Message-
>>From: Robert L Sowders [mailto:[EMAIL PROTECTED]]
>>Sent: Wednesday, September 18, 2002 7:02 PM
>>To: Tomcat Users List
>>Subject: Re: Static content
>>
>>
>>From your description we can only tell what you expect it to 
>>do.  To find 
>>out where the problem is we will need to see your configs.  
>>httpd.conf 
>>mod_jk.conf server.xml etc etc.
>>
>>Till then we're just guessing.
>>
>>rls
>>
>>
>>
>>
>>
>>[EMAIL PROTECTED]
>>09/18/2002 02:45 PM
>>Please respond to "Tomcat Users List"
>>
>> 
>>To: [EMAIL PROTECTED]
>>cc: 
>>Subject:Static content
>>
>>I am using Apache with Tomcat 3.2.4 and am trying to figure 
>>out how the
>>connector really works.  I am using mod_jk.  Basically, the 
>>question I 
>>have
>>is:  Does static content get served up by Apache or Tomcat?  
>>I would like
>>static content to be served up by Apache, but I'm not 
>>confident that it is
>>in my configuration.  My normal configuration is to have all 
>>of my files,
>>including static content, reside in the /webapps/app1
>>directory.  server.xml is configured such that the docbase for this 
>>context
>>is "/".  My apache config includes the mod_jk.conf-auto, which
>>automatically generates a "context" for app1 and JkMount 
>>directives for
>>/*.jsp and /servlet/*.  My DocumentRoot in httpd.conf is also 
>>pointing to
>>the same directory (/tomcat/webapps/app1).   Up until now, I 
>>assumed that
>>Apache was only passing on request for jsps or servlets to 
>>Tomcat, and 
>>that
>>it was serving up static content itself.  However, now I'm 
>>skeptical and
>>here is why.  If I change the DocumentRoot to a directory 
>>outside of the
>>/tomcat/webapps directory, and place my static content there, 
>>things seems
>>to function as expected.  If I add another context in 
>>/tomcat/webapps/test,
>>with a docbase of /test and place a static file in that 
>>context, it stills
>>gets served up (which I would NOT expect, since my JkMounts 
>>say to only
>>pass .jsp and servlet requests).  This leads me to believe 
>>that Apache is
>>passing  requests to Tomcat based  on the contexts that it 
>>knows about 
>>thru
>>mod_jk.conf, and not based on the JkMounts defined therein.  
>>Does anyone
>>have specifics on how the connector really works?
>>This correspondence may contain information that is confidential,
>>proprietary or "non-public personal information", as that 
>>term is defined
>>in the Gramm-Leach-Bliley Act (collectively, "Confidential 
>>Information").
>>The Confidential Information is disclosed conditioned upon 
>>your agreement
>>that you will treat all Confidential Information confidentially and in
>>accordance with applicable law, ensure that such information 
>>is not used 
>>or
>>disclosed except for the limited purpose for which it is 
>>being provided 
>>and
>>will notify and cooperate with Flagstar Bank regarding any requested
>>disclosure or any unauthorized disclosure or use of any Confidential
>>Information.  By accepting and reviewing the Confidential 
>>Information you
>>agree to indemnify Flagstar Bank against any losses or 
>>expenses, including
>>attorney's fees that Flagstar Bank may incur as a result of any
>>unauthorized use or disclosure of the Confidential 
>>Information due to your
>>acts or omissions.  If this correspondence is received by a 
>>party other
>>than the intended recipient, you are requested to immediately 
>>notify us of
>>the erroneous delivery and return to us all information so delivered.
>>
>>
>>--
>>To unsubscribe, e-mail:   
>>
>>
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>
>
>
>
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
>
>  
>

-- 

Rafael Angarita
Administrador de Sistemas
Telcel Bellsouth
(+58212)(2009765)





RE: Static content

2002-09-19 Thread Turner, John


I would add that you need 

forwardAll="false"

in your Listener configuration in server.xml.  The default is "true", and if
"true", ALL requests get passed to Tomcat.

John


> -Original Message-
> From: Robert L Sowders [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 18, 2002 7:02 PM
> To: Tomcat Users List
> Subject: Re: Static content
> 
> 
> From your description we can only tell what you expect it to 
> do.  To find 
> out where the problem is we will need to see your configs.  
> httpd.conf 
> mod_jk.conf server.xml etc etc.
> 
> Till then we're just guessing.
> 
> rls
> 
> 
> 
> 
> 
> [EMAIL PROTECTED]
> 09/18/2002 02:45 PM
> Please respond to "Tomcat Users List"
> 
>  
> To: [EMAIL PROTECTED]
> cc: 
> Subject:Static content
> 
> I am using Apache with Tomcat 3.2.4 and am trying to figure 
> out how the
> connector really works.  I am using mod_jk.  Basically, the 
> question I 
> have
> is:  Does static content get served up by Apache or Tomcat?  
> I would like
> static content to be served up by Apache, but I'm not 
> confident that it is
> in my configuration.  My normal configuration is to have all 
> of my files,
> including static content, reside in the /webapps/app1
> directory.  server.xml is configured such that the docbase for this 
> context
> is "/".  My apache config includes the mod_jk.conf-auto, which
> automatically generates a "context" for app1 and JkMount 
> directives for
> /*.jsp and /servlet/*.  My DocumentRoot in httpd.conf is also 
> pointing to
> the same directory (/tomcat/webapps/app1).   Up until now, I 
> assumed that
> Apache was only passing on request for jsps or servlets to 
> Tomcat, and 
> that
> it was serving up static content itself.  However, now I'm 
> skeptical and
> here is why.  If I change the DocumentRoot to a directory 
> outside of the
> /tomcat/webapps directory, and place my static content there, 
> things seems
> to function as expected.  If I add another context in 
> /tomcat/webapps/test,
> with a docbase of /test and place a static file in that 
> context, it stills
> gets served up (which I would NOT expect, since my JkMounts 
> say to only
> pass .jsp and servlet requests).  This leads me to believe 
> that Apache is
> passing  requests to Tomcat based  on the contexts that it 
> knows about 
> thru
> mod_jk.conf, and not based on the JkMounts defined therein.  
> Does anyone
> have specifics on how the connector really works?
> This correspondence may contain information that is confidential,
> proprietary or "non-public personal information", as that 
> term is defined
> in the Gramm-Leach-Bliley Act (collectively, "Confidential 
> Information").
> The Confidential Information is disclosed conditioned upon 
> your agreement
> that you will treat all Confidential Information confidentially and in
> accordance with applicable law, ensure that such information 
> is not used 
> or
> disclosed except for the limited purpose for which it is 
> being provided 
> and
> will notify and cooperate with Flagstar Bank regarding any requested
> disclosure or any unauthorized disclosure or use of any Confidential
> Information.  By accepting and reviewing the Confidential 
> Information you
> agree to indemnify Flagstar Bank against any losses or 
> expenses, including
> attorney's fees that Flagstar Bank may incur as a result of any
> unauthorized use or disclosure of the Confidential 
> Information due to your
> acts or omissions.  If this correspondence is received by a 
> party other
> than the intended recipient, you are requested to immediately 
> notify us of
> the erroneous delivery and return to us all information so delivered.
> 
> 
> --
> To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>





--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Static content

2002-09-18 Thread Robert L Sowders

>From your description we can only tell what you expect it to do.  To find 
out where the problem is we will need to see your configs.  httpd.conf 
mod_jk.conf server.xml etc etc.

Till then we're just guessing.

rls





[EMAIL PROTECTED]
09/18/2002 02:45 PM
Please respond to "Tomcat Users List"

 
To: [EMAIL PROTECTED]
cc: 
Subject:Static content

I am using Apache with Tomcat 3.2.4 and am trying to figure out how the
connector really works.  I am using mod_jk.  Basically, the question I 
have
is:  Does static content get served up by Apache or Tomcat?  I would like
static content to be served up by Apache, but I'm not confident that it is
in my configuration.  My normal configuration is to have all of my files,
including static content, reside in the /webapps/app1
directory.  server.xml is configured such that the docbase for this 
context
is "/".  My apache config includes the mod_jk.conf-auto, which
automatically generates a "context" for app1 and JkMount directives for
/*.jsp and /servlet/*.  My DocumentRoot in httpd.conf is also pointing to
the same directory (/tomcat/webapps/app1).   Up until now, I assumed that
Apache was only passing on request for jsps or servlets to Tomcat, and 
that
it was serving up static content itself.  However, now I'm skeptical and
here is why.  If I change the DocumentRoot to a directory outside of the
/tomcat/webapps directory, and place my static content there, things seems
to function as expected.  If I add another context in 
/tomcat/webapps/test,
with a docbase of /test and place a static file in that context, it stills
gets served up (which I would NOT expect, since my JkMounts say to only
pass .jsp and servlet requests).  This leads me to believe that Apache is
passing  requests to Tomcat based  on the contexts that it knows about 
thru
mod_jk.conf, and not based on the JkMounts defined therein.  Does anyone
have specifics on how the connector really works?
This correspondence may contain information that is confidential,
proprietary or "non-public personal information", as that term is defined
in the Gramm-Leach-Bliley Act (collectively, "Confidential Information").
The Confidential Information is disclosed conditioned upon your agreement
that you will treat all Confidential Information confidentially and in
accordance with applicable law, ensure that such information is not used 
or
disclosed except for the limited purpose for which it is being provided 
and
will notify and cooperate with Flagstar Bank regarding any requested
disclosure or any unauthorized disclosure or use of any Confidential
Information.  By accepting and reviewing the Confidential Information you
agree to indemnify Flagstar Bank against any losses or expenses, including
attorney's fees that Flagstar Bank may incur as a result of any
unauthorized use or disclosure of the Confidential Information due to your
acts or omissions.  If this correspondence is received by a party other
than the intended recipient, you are requested to immediately notify us of
the erroneous delivery and return to us all information so delivered.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 





--
To unsubscribe, e-mail:   
For additional commands, e-mail: