httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mimiko <vbv...@gmail.com>
Subject [users@httpd] Redirect to other server if file/directory does not exists.
Date Mon, 04 Aug 2014 20:47:45 GMT
Hello.

I want to redirect/proxy all request to other server if file/directory 
does not exists locally. In apache's help I've found this exmaple:

RewriteCond %{REQUEST_URI}/$1 !-U
RewriteRule ^/(.*) http://otherserver/$1 [P,L]

But it works if file/directory exists, and shows 404 file not found if 
file does not exist. Why it does not proxy?

-- 
Mimiko desu.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message