Skip to main content

One suggestion re: Forbidden access via Apache Proxies

If you are getting the following error when configuring Apache 2.2's proxy support (mod_proxy):
HTTP error code 403 Forbidden
then you might want to take a look inside the error.log for your site. If you see an error message like this:
[warn] proxy: No protocol handler was valid for the URL /SomeUrl.
If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
Then you might want to check that you have more than just mod_proxy enabled. Mod_proxy is more of a virtual module relying on other modules to perform the proxying work depending on the type required. A common mistake is to have enabled mod_proxy but not enabled mod_proxy_http.

With Ubuntu or Debian you can enable them with the following two commands:
a2enmod proxy
a2enmod proxy_http
Otherwise you will have to make manual symbolic links to them yourself.

Technorati Tags: , , , , , ,

Comments

Unknown said…
thanks a million for this post. i just uncommented the following and it started working.

LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_http_module modules/mod_proxy_http.so


Thanks once again for such a helpful blog
Anonymous said…
Been fighting this for an hour until I happened upon this post.

All is well. Thanks a million!
Anonymous said…
Thank you I was stuck for quite some time with this.
Anonymous said…
thx a lot, works now.
Anonymous said…
Thanks a lot. Right to the point.
Anonymous said…
Thanks, very helpfull.
I had to comment the "Denny all" in the proxy.conf file, before follow your instruccions to get it work.
Always the more simples errors are the most dificult to fix.

Thanks again ;)
Matías Neiff
Anonymous said…
Thanks - helped me a lot!
cacovsky said…
How can I buy you a beer?
Andrew Beacock said…
Don't worry about that, glad you found some use out of my blog! :D
msolanki said…
Thanks a ton!! Your post got me through after 2 hrs of struggle.
thanks for sharing this kind of blog nice post!