Hi all,I'm moving a big directory of images from an HTTP server to another and I cannot change any configuration. I would like my users don't even suppose there is a moving in progress. So I thought to add a new Apache httpd server 2.2 configured as reverse proxy in front of both of those servers.
Let me say, we can call those servers 'origin' and 'destination'.
Apache when a resource does not exists in the destination should try to get it in the origin server.
I suppose to do this check, I mean if the resource exist or not in 'destination' server, using mod_rewrite, I mean RewriteCond -U option.
Actually my tentative has failed, it seems impossible check the existence of external resource using only standard apache 2.2 directives.This is my tentative:RewriteCond %{IS_SUBREQ} trueRewriteCond %{REQUEST_FILENAME} ^/destinationRewriteRule . http://destination-server%{REQUEST_FILENAME} [P,L]# Check "destination" requestsRewriteCond %{IS_SUBREQ} falseRewriteCond "/destination%{REQUEST_FILENAME}" -URewriteRule . http://destination-server%{REQUEST_FILENAME} [P,L]RewriteCond %{IS_SUBREQ} falseRewriteRule . http://origin-server%{REQUEST_URI} [P,L]Is there any way to do this using mod_rewrite or some standard Apache httpd module?
Ciao,
Vincenzo