use mod_rewrite and mod_jk

use mod_rewrite and mod_jk

am 03.03.2010 11:07:37 von andre wang

hi all

I have an apache server ( 2.2.9 ) running on debian lenny, and
have name virtualhosts support. The following is my config:


ServerName www.example.com
DocumentRoot /var/www
JkMount /* tomcat
RewriteEngine On
RewriteRule ^/images/ - [L]


There is a directory named "images" under the document root
"/var/www", so if i send a request
"http://www.example.com/images/a.jpg", could Apache do NOT send the
requst to my tomcat server, is that possible?

thanks
andre.ease

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: use mod_rewrite and mod_jk

am 03.03.2010 13:46:56 von Nick Tkach

Yes, you want to look at JkUnmount directive (something like JkUnmount /ima=
ges/*). Just put it before your JkMount statement(s).

This email message and any attachments are for the sole use of the intended=
recipient(s) and may contain information that is proprietary to Ahold and/=
or its subsidiaries (â€=9CAholdâ€=9D) or otherwise confidential or =
legally privileged. If you have received this message in error, please not=
ify the sender by reply, and delete all copies of this message and any atta=
chments. If you are the intended recipient you may use the information con=
tained in this message and any files attached to this message only as autho=
rized by Ahold. Files attached to this message may only be transmitted usi=
ng secure systems and appropriate means of encryption, and must be secured =
using the same level of password and security protection with which the fil=
e was provided to you. Any unauthorized use, dissemination or disclosure o=
f this message or its attachments is strictly prohibited.

----- Original Message -----
From: "andre wang"
To: users@httpd.apache.org
Sent: Wednesday, March 3, 2010 4:07:37 AM
Subject: [users@httpd] use mod_rewrite and mod_jk

hi all

I have an apache server ( 2.2.9 ) running on debian lenny, and
have name virtualhosts support. The following is my config:


ServerName www.example.com
DocumentRoot /var/www
JkMount /* tomcat
RewriteEngine On
RewriteRule ^/images/ - [L]


There is a directory named "images" under the document root
"/var/www", so if i send a request
"http://www.example.com/images/a.jpg", could Apache do NOT send the
requst to my tomcat server, is that possible?

thanks
andre.ease

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: use mod_rewrite and mod_jk

am 03.03.2010 14:07:13 von andre wang

thanks Nick, JkUnmount works well.


On Wed, Mar 3, 2010 at 8:46 PM, Nick Tkach wrote:
> Yes, you want to look at JkUnmount directive (something like JkUnmount /i=
mages/*). =A0Just put it before your JkMount statement(s).
>
> This email message and any attachments are for the sole use of the intend=
ed recipient(s) and may contain information that is proprietary to Ahold an=
d/or its subsidiaries (=93Ahold=94) or otherwise confidential or legally pr=
ivileged. =A0If you have received this message in error, please notify the =
sender by reply, and delete all copies of this message and any attachments.=
=A0If you are the intended recipient you may use the information contained=
in this message and any files attached to this message only as authorized =
by Ahold. =A0Files attached to this message may only be transmitted using s=
ecure systems and appropriate means of encryption, and must be secured usin=
g the same level of password and security protection with which the file wa=
s provided to you. =A0Any unauthorized use, dissemination or disclosure of =
this message or its attachments is strictly prohibited.
>
> ----- Original Message -----
> From: "andre wang"
> To: users@httpd.apache.org
> Sent: Wednesday, March 3, 2010 4:07:37 AM
> Subject: [users@httpd] use mod_rewrite and mod_jk
>
> hi all
>
> =A0 =A0I have an apache server ( 2.2.9 ) running on debian lenny, and
> have name virtualhosts support. The following is my config:
>
> =A0 =A0
> =A0 =A0 =A0 =A0ServerName www.example.com
> =A0 =A0 =A0 =A0DocumentRoot /var/www
> =A0 =A0 =A0 =A0JkMount /* tomcat
> =A0 =A0 =A0 =A0RewriteEngine On
> =A0 =A0 =A0 =A0RewriteRule ^/images/ - [L]
> =A0 =A0

>
> =A0 There is a directory named "images" under the document root
> "/var/www", so if i send a request
> "http://www.example.com/images/a.jpg", could Apache do NOT send the
> requst to my tomcat server, is that possible?
>
> thanks
> andre.ease
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project=
..
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> =A0 " =A0 from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project=
..
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> =A0 " =A0 from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org