¿Cómo consigo que ProxyPass básico funcione en Apache 2.2.17?

¿Cómo consigo que ProxyPass básico funcione en Apache 2.2.17?

Estoy tratando de sortear la restricción ERR_UNSAFE_PORT en Chrome haciendo que Apache invierta el proxy de otros servidores HTTP en la máquina.

  1. cargo mod_proxy consudo e2enmod proxy
  2. agrego ProxyPass /znc/ http://localhost:6667/a mihttpd.conf
  3. Reinicio Apache consudo /etc/init.d/apache2 restart

Cuando abro /znc/, aparece el error 500 interno del servidor. Agregué LogLevel debug, reinicié Apache, intenté nuevamente y no obtuve nada sospechoso:

[Fri Oct 19 18:55:17 2012] [debug] proxy_util.c(1818): proxy: grabbed scoreboard slot 0 in child 21528 for worker http://localhost:6667/
[Fri Oct 19 18:55:17 2012] [debug] proxy_util.c(1934): proxy: initialized single connection worker 0 in child 21528 for (localhost)
[Fri Oct 19 18:55:17 2012] [debug] proxy_util.c(1818): proxy: grabbed scoreboard slot 1 in child 21528 for worker proxy:reverse
[Fri Oct 19 18:55:17 2012] [debug] proxy_util.c(1934): proxy: initialized single connection worker 1 in child 21528 for (*)
[Fri Oct 19 18:55:17 2012] [notice] Apache/2.2.17 (Ubuntu) PHP/5.3.8 configured -- resuming normal operations
[Fri Oct 19 18:55:17 2012] [info] Server built: Feb 14 2012 17:59:20
[Fri Oct 19 18:55:17 2012] [debug] prefork.c(1018): AcceptMutex: sysvsem (default: sysvsem)
[Fri Oct 19 18:55:22 2012] [debug] proxy_util.c(1818): proxy: grabbed scoreboard slot 0 in child 21532 for worker http://localhost:6667/
[Fri Oct 19 18:55:22 2012] [debug] proxy_util.c(1837): proxy: worker http://localhost:6667/ already initialized
[Fri Oct 19 18:55:22 2012] [debug] proxy_util.c(1934): proxy: initialized single connection worker 0 in child 21532 for (localhost)
[Fri Oct 19 18:55:22 2012] [debug] proxy_util.c(1818): proxy: grabbed scoreboard slot 1 in child 21532 for worker proxy:reverse
[Fri Oct 19 18:55:22 2012] [debug] proxy_util.c(1837): proxy: worker proxy:reverse already initialized
[Fri Oct 19 18:55:22 2012] [debug] proxy_util.c(1934): proxy: initialized single connection worker 1 in child 21532 for (*)

Entonces estoy perplejo en este punto. ¿Qué hacer?

Estoy ejecutando Ubuntu Server 11.10. ZNC responde con 200 OK y HTML correctos cuando se le consulta directamente tanto desde la máquina local como desde Internet.

Respuesta1

También se debe habilitar mod_proxy_http con sudo a2enmod proxy_http.

información relacionada