Redirect to other server if file/directory does not exists.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Httpd Users List <users@xxxxxxxxxxxxxxxx>
- Subject: Redirect to other server if file/directory does not exists.
- From: Mimiko <vbvbrj@xxxxxxxxx>
- Date: Mon, 04 Aug 2014 23:47:45 +0300
- Reply-to: users@xxxxxxxxxxxxxxxx
- User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
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@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
[Index of Archives]
[Open SSH Users]
[Linux ACPI]
[Linux Kernel]
[Linux Laptop]
[Kernel Newbies]
[Security]
[Netfilter]
[Bugtraq]
[Squid]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Samba]
[Video 4 Linux]
[Device Mapper]