Thank You Joshua for Your comments &
instructions, I try to be more specific.
I want to read a group of files (e.g.
eMatrixAppletDownload.cab) from local Apache server at USA,
and redirect everything else to Finland
main web & DB server (simplified example of my case).
I have following configuration:
------------------------------------------------------------------------------------
ProxyPassReverse / http://FINLAND-WEB-SERVER:7003/
RewriteEngine On
RewriteLog "/usr/local/apache2-2.0.52/logs/rewrite.log"
RewriteLogLevel 9
RewriteCond %{REQUEST_URI} !.*(eMatrixAppletDownloadXML.jar|SwingDownload.jar|eMatrixAppletDownload.cab|SwingDownload.cab)$
RewriteRule ^/(.*) http://FINLAND-WEB-SERVER:7003/$1
[P]
-------------------------------------------------------------------------------------
When I start my application from
http://USA-APACHE-SERVER:7003/ematrix_xml/WebClient/XX.jsp
jars and cabs, that I would like to
be read from local Apache .../htdocs directory are read from Finland, not
from USA as I would like them to be read.
With
RewriteCond %{REQUEST_URI} !.*\.(jpg|jar|cab|gif|pdf|png|zip|tgz|gz|html|htm|css|js)$
I have the outcome I want, but I can
not use this *.jar & *.cab with other jsp pages on my applications:
MY-LAPTOP - - [27/Apr/2005:09:21:36
+0200] [APACHE-SERVER/sid#9f028][rid#1589f0/initial] (2) init rewrite engine
with requested uri /ematrix_xml/WebClient/java/classes/eMatrixAppletDownloadXML.cab
MY-LAPTOP - - [27/Apr/2005:09:21:36
+0200] [APACHE-SERVER/sid#9f028][rid#1589f0/initial] (3) applying pattern
'^/(.*)' to uri '/ematrix_xml/WebClient/java/classes/eMatrixAppletDownloadXML.cab'
MY-LAPTOP - - [27/Apr/2005:09:21:36
+0200] [APACHE-SERVER/sid#9f028][rid#1589f0/initial] (4) RewriteCond: input='/ematrix_xml/WebClient/java/classes/eMatrixAppletDownloadXML.cab'
pattern='!.*\.(jpg|jar|cab|gif|pdf|png|zip|tgz|gz|html|htm|css|js)$' =>
not-matched MY-LAPTOP - - [27/Apr/2005:09:21:36
+0200] [APACHE-SERVER/sid#9f028][rid#1589f0/initial] (1) pass through /ematrix_xml/WebClient/java/classes/eMatrixAppletDownloadXML.cab
---------------------------------------------------------------------------------------------------------------------------
Could You please help me to write a
living example
of how should I write my RewriteCond
& RewriteRule syntax to exclude only the group of files
and redirect others to main web server
?
br,
Paula
Joshua Slive <jslive@xxxxxxxxx>
25/04/2005 16:29
Please respond to
users@xxxxxxxxxxxxxxxx
To
users@xxxxxxxxxxxxxxxx
cc
Subject
Re: [users@httpd] Question about Apache
RewriteCond Syntax on Proxy Configuration
On 4/25/05, Paula Nousiainen <paula.nousiainen@xxxxxxxxxxx>
wrote:
> I tried following, which is not working:
Never say something like that on a technical mailing list.
Say exactly what you did, exactly what the outcome was, and exactly
what you want the outcome to be.
You are excluding files with names like
".eMatrixAppletDownloadXML.jar". I don't think you really
want that
leading dot. Try fixing your regex.
Joshua.
---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
" from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx