
Ich versuche, die ERR_UNSAFE_PORT-Einschränkung in Chrome zu umgehen, indem ich Apache als Reverse-Proxy für andere HTTP-Server auf dem Computer einsetze.
- Ich lade mod_proxy mit
sudo e2enmod proxy
- Ich füge hinzu
ProxyPass /znc/ http://localhost:6667/
zu meinemhttpd.conf
- Ich starte Apache neu mit
sudo /etc/init.d/apache2 restart
Wenn ich öffne /znc/
, erhalte ich die Meldung „500 Internal Server Error“. Ich habe hinzugefügt LogLevel debug
, Apache neu gestartet, es erneut versucht und nichts Verdächtiges erhalten:
[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 (*)
Ich bin an diesem Punkt ratlos. Was soll ich tun?
Ich verwende Ubuntu Server 11.10. ZNC antwortet mit einem korrekten 200 OK und HTML, wenn es sowohl vom lokalen Computer als auch vom Internet direkt abgefragt wird.
Antwort1
Man muss auch mod_proxy_http mit aktivieren sudo a2enmod proxy_http
.