Re: mod JK ho to rout all content to tomcat except for a few static folders

2016-06-21 Thread Campbell, Lance
I am so sorry.  You are correct.  

Lance

Sent from my iPhone

> On Jun 20, 2016, at 12:13 PM, Rainer Jung  wrote:
> 
>> Am 20.06.2016 um 18:32 schrieb Campbell, Lance:
>> Neither of these options will work for me:
>> 1) no-jk is only supported for: "Starting with mod_jk 1.2.6 for Apache 2.x 
>> and 1.2.19 for Apache 1.3"
> 
> So? You wrote your versions are
> 
> Apache 2.2.15
> mod_jk  1.2.41
> 
> and isn't 1.2.41 >= 1.2.6? So the no-jk feature is supported. Why do you 
> think it is not?
> 
>> 2) The urls that get sent to Tomcat are unkown.  This is a dynamic content 
>> driven site.
> 
> 1) and 2) both work once you know which URIs you want to exclude form 
> forwarding. You wrote "except for three directories that contain static 
> content" so I guess you are able to describe those URIs to exclude e.g. by 
> one to three URI prefixes?
> 
> The examples Anthony gave are correct, so if your URIs to exclude start e.g. 
> with /img/, /css/ and /static/, you could either
> 
> JkUnMount /img/* *
> JkUnMount /css/* *
> JkUnMount /static/* *
> 
> or
> 
> SetEnvIf Request_URI "/img/*" no-jk
> SetEnvIf Request_URI "/css/*" no-jk
> SetEnvIf Request_URI "/static/*" no-jk
> 
> I slightly prefer the JkUnMount way, because it is a bit easier to 
> read/understand if you put it close to your JkMount in the config file. The 
> second way is convenient if the exclusion rules get more complex, because you 
> can do tricky stuff with environment variables (no-jk).
> 
> Regards,
> 
> Rainer
> 
>> -Original Message-
>> From: Anthony Biacco [mailto:abia...@handll.com]
>> Sent: Monday, June 20, 2016 10:29 AM
>> To: Tomcat Users List 
>> Subject: Re: mod JK ho to rout all content to tomcat except for a few static 
>> folders
>> 
>>> On Mon, Jun 20, 2016 at 9:14 AM, Campbell, Lance  wrote:
>>> 
>>> These are the versions of software I have to use.  I cannot install
>>> other
>>> software:
>>> 
>>> 
>>> 
>>> Apache 2.2.15
>>> 
>>> mod_jk  1.2.41
>>> 
>>> Tomcat 8.0.36
>>> 
>>> 
>>> 
>>> Issue:
>>> 
>>> We are looking at having a domain where all content will get routed to
>>> Tomcat 8 except for three directories that contain static content.
>>> These three directories will be served up by Apache.  Based on the
>>> above versions how can I tell Apache to handle just these three
>>> directories and then send all other content requests to Tomcat?
>> should be able to use either of:
>> 
>> JkUnMount /URI/* worker
>> 
>> SetEnvIf Request_URI "/URI/*" no-jk
>> 
>> 
>> -Tony
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 

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



Re: mod JK ho to rout all content to tomcat except for a few static folders

2016-06-20 Thread tomcat

On 20.06.2016 18:32, Campbell, Lance wrote:

Neither of these options will work for me:


I don't see why not.


1) no-jk is only supported for: "Starting with mod_jk 1.2.6 for Apache 2.x and 
1.2.19 for Apache 1.3"


So, you have Apache httpd 2.2.15 (which matches 2.x) and mod_jk 1.2.41, which is later 
than mod_jk 1.2.6.  So where is the problem ?



2) The urls that get sent to Tomcat are unkown.  This is a dynamic content 
driven site.


Yes, but the ones which are /not/ to be sent to Tomcat are known, as per your 
explanation.
(some "specific" static directories, like "/home/othercontent1" (although that does not 
match your example DocumentRoot))


Lines like
JkUnMount /URI/* worker
or
SetEnvIf Request_URI "/URI/*" no-jk
indicate which "URI"'s are /not/ sent to Tomcat.
They say nothing about what /is/ sent to Tomcat.
(which according to your
JkMount /* mytomcatapplication
would be everything else).

Or am I missing something ?

(Note that the "/URI/" above are a better match for Apache  sections, rather 
than  sections).





Any other options.

Thanks,

Lance

-Original Message-
From: Anthony Biacco [mailto:abia...@handll.com]
Sent: Monday, June 20, 2016 10:29 AM
To: Tomcat Users List 
Subject: Re: mod JK ho to rout all content to tomcat except for a few static 
folders

On Mon, Jun 20, 2016 at 9:14 AM, Campbell, Lance  wrote:


These are the versions of software I have to use.  I cannot install
other
software:



Apache 2.2.15

mod_jk  1.2.41

Tomcat 8.0.36



Issue:

We are looking at having a domain where all content will get routed to
Tomcat 8 except for three directories that contain static content.
These three directories will be served up by Apache.  Based on the
above versions how can I tell Apache to handle just these three
directories and then send all other content requests to Tomcat?






should be able to use either of:

JkUnMount /URI/* worker

SetEnvIf Request_URI "/URI/*" no-jk


-Tony

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




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



Re: mod JK ho to rout all content to tomcat except for a few static folders

2016-06-20 Thread Rainer Jung

Am 20.06.2016 um 18:32 schrieb Campbell, Lance:

Neither of these options will work for me:
1) no-jk is only supported for: "Starting with mod_jk 1.2.6 for Apache 2.x and 
1.2.19 for Apache 1.3"


So? You wrote your versions are

Apache 2.2.15
mod_jk  1.2.41

and isn't 1.2.41 >= 1.2.6? So the no-jk feature is supported. Why do you 
think it is not?



2) The urls that get sent to Tomcat are unkown.  This is a dynamic content 
driven site.


1) and 2) both work once you know which URIs you want to exclude form 
forwarding. You wrote "except for three directories that contain static 
content" so I guess you are able to describe those URIs to exclude e.g. 
by one to three URI prefixes?


The examples Anthony gave are correct, so if your URIs to exclude start 
e.g. with /img/, /css/ and /static/, you could either


JkUnMount /img/* *
JkUnMount /css/* *
JkUnMount /static/* *

or

SetEnvIf Request_URI "/img/*" no-jk
SetEnvIf Request_URI "/css/*" no-jk
SetEnvIf Request_URI "/static/*" no-jk

I slightly prefer the JkUnMount way, because it is a bit easier to 
read/understand if you put it close to your JkMount in the config file. 
The second way is convenient if the exclusion rules get more complex, 
because you can do tricky stuff with environment variables (no-jk).


Regards,

Rainer


-Original Message-
From: Anthony Biacco [mailto:abia...@handll.com]
Sent: Monday, June 20, 2016 10:29 AM
To: Tomcat Users List 
Subject: Re: mod JK ho to rout all content to tomcat except for a few static 
folders

On Mon, Jun 20, 2016 at 9:14 AM, Campbell, Lance  wrote:


These are the versions of software I have to use.  I cannot install
other
software:



Apache 2.2.15

mod_jk  1.2.41

Tomcat 8.0.36



Issue:

We are looking at having a domain where all content will get routed to
Tomcat 8 except for three directories that contain static content.
These three directories will be served up by Apache.  Based on the
above versions how can I tell Apache to handle just these three
directories and then send all other content requests to Tomcat?






should be able to use either of:

JkUnMount /URI/* worker

SetEnvIf Request_URI "/URI/*" no-jk


-Tony


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



RE: mod JK ho to rout all content to tomcat except for a few static folders

2016-06-20 Thread Campbell, Lance
Neither of these options will work for me:
1) no-jk is only supported for: "Starting with mod_jk 1.2.6 for Apache 2.x and 
1.2.19 for Apache 1.3"
2) The urls that get sent to Tomcat are unkown.  This is a dynamic content 
driven site.  

Any other options.

Thanks,

Lance

-Original Message-
From: Anthony Biacco [mailto:abia...@handll.com] 
Sent: Monday, June 20, 2016 10:29 AM
To: Tomcat Users List 
Subject: Re: mod JK ho to rout all content to tomcat except for a few static 
folders

On Mon, Jun 20, 2016 at 9:14 AM, Campbell, Lance  wrote:

> These are the versions of software I have to use.  I cannot install 
> other
> software:
>
>
>
> Apache 2.2.15
>
> mod_jk  1.2.41
>
> Tomcat 8.0.36
>
>
>
> Issue:
>
> We are looking at having a domain where all content will get routed to 
> Tomcat 8 except for three directories that contain static content.  
> These three directories will be served up by Apache.  Based on the 
> above versions how can I tell Apache to handle just these three 
> directories and then send all other content requests to Tomcat?
>
>
>
>
>
should be able to use either of:

JkUnMount /URI/* worker

SetEnvIf Request_URI "/URI/*" no-jk


-Tony

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



Re: mod JK ho to rout all content to tomcat except for a few static folders

2016-06-20 Thread Anthony Biacco
On Mon, Jun 20, 2016 at 9:14 AM, Campbell, Lance  wrote:

> These are the versions of software I have to use.  I cannot install other
> software:
>
>
>
> Apache 2.2.15
>
> mod_jk  1.2.41
>
> Tomcat 8.0.36
>
>
>
> Issue:
>
> We are looking at having a domain where all content will get routed to
> Tomcat 8 except for three directories that contain static content.  These
> three directories will be served up by Apache.  Based on the above versions
> how can I tell Apache to handle just these three directories and then send
> all other content requests to Tomcat?
>
>
>
>
>
should be able to use either of:

JkUnMount /URI/* worker

SetEnvIf Request_URI "/URI/*" no-jk


-Tony