[Setup] Apache 2.2 rewrite rules

Ricardo Newbery ric at digitalmarbles.com
Fri Nov 9 23:15:27 UTC 2007


On Nov 9, 2007, at 1:20 PM, pacoverde wrote:

> Hmmm...If I place a very basic index.html file in the Apache  
> document root
> for the VHost and disable all rewrite rules, I can access the  
> document just
> fine.
>
> If I re-enable the rewrite rules (either based on docs on the Plone  
> site, or
> on James' how-to) we go back to the "403" Forbidden error. When this
> happens, the error log for the VHost shows:
>
> "[Fri Nov 09 13:05:54 2007] [warn] proxy: No protocol handler was  
> valid for
> the URL /index.html. If you are using a DSO version of mod_proxy,  
> make sure
> the proxy submodules are included in the configuration using  
> LoadModule."


Hmm... if you're loading these modules dynamically, do you have all  
the necessary LoadModule directives in your config?
It should look something like so:

LoadModule proxy_module       modules/libproxy.so
LoadModule proxy_http_module  modules/mod_proxy_http.so
LoadModule rewrite_module     modules/mod_rewrite.so

The path might differ in some installs -- check the "modules" (or  
maybe "libexec") folder in the apache install to confirm.  Some  
setups may also group the modules into "available" and "enabled"  
folders -- if so, then check to see that the modules you need are in  
the "enabled" folder.


> I've enabled mod_proxy_html and mod_proxy_connect:
>
>      PROXY=on "Enable mod_proxy"
>      PROXY_CONNECT=on "Enable mod_proxy_connect"
>      PROXY_FTP=off "Enable mod_proxy_ftp"
>      PROXY_HTTP=on "Enable mod_proxy_http"
>      PROXY_AJP=off "Enable mod_proxy_ajp"
>      PROXY_BALANCER=off "Enable mod_proxy_balancer"


Where did you find these lines?

Note, mod_proxy_connect is mainly used to tunnel SSL requests through  
a proxy -- I don't think this applies in your usecase.

Ric





More information about the Setup mailing list