Aller au contenu
Infogérance Linux Debian en France

Infogérance Linux Debian en France

Kogitae : Ingéniérie de l'hébergement Internet

  • Accueil
  • Parcours
  • Presse
  • Portfolio
  • Blog

» proxy: No protocol handler was valid for the URL

  • Accueil » Blog » » proxy: No protocol handler was valid for the URL
DansApache

» proxy: No protocol handler was valid for the URL

proxy: No protocol handler was valid for the URL

I am using mod_proxy to hide my host-wide Geneweb setup behind a bunch of Apache vhosts. I was surprised to find that after migrating to Apache 2.2 my mod_proxy setup had ceased working. The vhost’s access.log was showing a 403 and the error.log was churning messages containing “proxy: No protocol handler was valid for the URL”. I fed that message to Google and after looking at a few random threads I began to understand that the mod_proxy configuration had most probably changed between Apache 2.0 and Apache 2.2.

In addition to mod_proxy.so additional modules now have to be loaded in order to support a few configuration directives. The mod_proxy configuration for my Geneweb setup is as follow :

RewriteEngine On

ProxyPass /robots.txt http://www.bensaude.org/robots.txt

ProxyPass / http://kivu.grabeuh.com:2317/

ProxyPassReverse / http://kivu.grabeuh.com:2317/

A quick look at the available modules in /etc/apache2/mods-available showed me that in addition to mod_proxy.so I also had mod_proxy_ajp.so, mod_proxy_balancer.so, mod_proxy_connect.so, mod_proxy_ftp.so, mod_proxy_html.so and mod_proxy_http.so. On a hunch I decided that mod_proxy_http.so was the best candidate so I tried that first.

ln -s /etc/apache2/mods-available/proxy_http.load \

/etc/apache2/mods-enabled/proxy_http.load

apache2ctl configtest

apache2ctl graceful

via» proxy: No protocol handler was valid for the URL.

admin-handler-proxy administration-dun-site-sous-apache adresses-proxy-valide-2010 apache apache-2-proxy-no-protocol-handler enable-proxy-mod_proxy_http-handler-debian freebsd-no-protocol-handler-was-valid-for-the-url geneweb-apache handler-proxys les-proxys-pour-handlers no-protocol-handler-was-valid-for-the-ur no-protocol-handler-was-valid-for-the-url no-protocol-handler-was-valid-for-the-url-proxy protocolhandler proxy proxy-no-protocol-handler-was-valid proxy-no-protocol-handler-was-valid-for-the-ur proxy-no-protocol-handler-was-valid-for-the-url proxypass-no-protocol-handler-was-valid-for-the-ur virtualhost

Étiquettes

administrateur-systeme-freelance (9) amazon (3) apache (14) asterisk (9) auth (3) bash (6) blog-administrateur-systeme (14) blog-administration-systeme (4) collectd (5) cpu (3) debian (30) dovecot (4) duplicate (3) f (6) freelance-asterisk (3) google (3) infogerance-linux (5) infogérance (4) ipv6 (7) kernel (4) kogitae (30) kogitae-com (3) kogitae-fr (6) lamp-or-linux-or-developpement-web-and-apache-or-php-or-mysql-or-adobe-or-eclipse-or-zend-or-mozilla-or-firefox (17) lenny (4) lighttpd (5) limit (4) linux (26) mail (7) mdadm (6) mysql (14) openvz (9) optimiser (4) php (5) postfix (11) privvmpages-openvz (3) pxe (3) raid (3) SEO (5) ssh (8) ssl (3) test (3) voip (4) wordpress (6) www-kogitae-fr (7)