Apache mod_rewrite不起作用

我必须通过mod_rewrite从apache代理所有请求到另一个。

加载mod_proxy和mod_rewrite,我configuration了如下的Apache:

<VirtualHost *:8009> Options +FollowSymLinks -Multiviews ...... RewriteEngine on RewriteRule ^/abc/(.*) http://anotherhost/abc/$1 [P,L] .... </VirtualHost> 

但阿帕奇返回我505。

这是Apache在重写日志上写的内容:

 - - [16/Sep/2010:14:13:06 +0200] [myhost/sid#7f9472e763b8][rid#7f94731a6c78/initial] (2) forcing proxy-throughput with http://otherhost/abc/ - - [16/Sep/2010:14:13:06 +0200] [myhost/sid#7f9472e763b8][rid#7f94731a6c78/initial] (1) go-ahead with proxy request proxy:http://otherhost/abc/ [OK] 

这在错误日志上:

 [warn] proxy: No protocol handler was valid for the URL /abc/. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule. 

我错过了什么?

确保你已经加载了mod_proxy和支持模块(即, mod_proxy_http )。

祝你好运!