SUPPORT THE SITE WITH A CLICK

Subscribe Rss:

SUPPORT THE SITE WITH A CLICK

Saturday, July 4, 2009

proxy: No protocol handler was valid for the URL

While trying to configure mod_proxy_balancer.Although i configured everything correctly and enabled all required modules(mod_proxy, mod_proxy_http).But after restarting the apache server i used to get internal server in my browser.Then i verified the apache error log

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




After searching a lot in google i got tips from Serendipitous
In my terminal i created some soft links for proxy_http.load like this
ln -s /etc/apache2/mods-available/proxy_http.load \
/etc/apache2/mods-enabled/proxy_http.load

Now i restarted my server and it was working fine.For the same problem i have referred another usefull blog Kai`s Blog in that they have tried by adding a trailing slash to the url of the balancer like this
<Proxy balancer://mycluster/>
BalancerMember http://foobar.de:8080/ 
</Proxy>
ProxyPass / balancer://mycluster/ 
ProxyPassReverse / balancer://mycluster/

5 comments :

  1. Thank you so much for this! It saved me hours of mucking around.

    the / at the end of the balancer in the e.g. ProxyPass / balancer:mycluster/

    as opposed to

    ProxyPass / balancer:mycluster

    So useful 10/10 thanks.

    ReplyDelete
  2. Thanks a bunch for this post. Helped me get the load-balancer config working with Apache. That trailing slash is key !!

    -Anjali

    ReplyDelete
  3. Thanks a lot. It saved me many hours.

    -Shanika

    ReplyDelete
  4. Ditto here. That trailing slash would have plagued me for days!

    ReplyDelete
  5. You are not supposed to create symlinks yourself, rather use a2enmod and such.

    ReplyDelete