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:

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

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 <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
andre wang [ Mi, 03 März 2010 11:07 ] [ ID #2033920 ]

Re: use mod_rewrite and mod_jk

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 (=E2=80=9CAhold=E2=80=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" <andre.ease [at] gmail.com>
To: users [at] httpd.apache.org
Sent: Wednesday, March 3, 2010 4:07:37 AM
Subject: [users [at] 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:

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

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 <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Nick Tkach [ Mi, 03 März 2010 13:46 ] [ ID #2033925 ]

Re: use mod_rewrite and mod_jk

thanks Nick, JkUnmount works well.


On Wed, Mar 3, 2010 at 8:46 PM, Nick Tkach <ntkach [at] peapod.com> 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" <andre.ease [at] gmail.com>
> To: users [at] httpd.apache.org
> Sent: Wednesday, March 3, 2010 4:07:37 AM
> Subject: [users [at] 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<NameVirtualHost *>
> =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</NameVirtualHost>
>
> =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 <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
> =A0 " =A0 from the digest: users-digest-unsubscribe [at] httpd.apache.org
> For additional commands, e-mail: users-help [at] httpd.apache.org
>
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project=
..
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
> =A0 " =A0 from the digest: users-digest-unsubscribe [at] httpd.apache.org
> For additional commands, e-mail: users-help [at] httpd.apache.org
>
>

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
andre wang [ Mi, 03 März 2010 14:07 ] [ ID #2033927 ]
Webserver » gmane.comp.apache.user » use mod_rewrite and mod_jk

Vorheriges Thema: which cache is faster ?
Nächstes Thema: Spider Monkey