
Apache 역방향 프록시를 컴퓨터의 다른 HTTP 서버로 만들어 Chrome의 ERR_UNSAFE_PORT 제한을 해결하려고 합니다.
- mod_proxy를 로드합니다.
sudo e2enmod proxy
- 나는
ProxyPass /znc/ http://localhost:6667/
내 것을 추가한다httpd.conf
- 나는 아파치를 다시 시작한다
sudo /etc/init.d/apache2 restart
을 열면 /znc/
500 내부 서버 오류가 발생합니다. 을 추가하고 LogLevel debug
아파치를 다시 시작하고 다시 시도했지만 의심스러운 것은 없습니다.
[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 (*)
그래서 나는이 시점에서 당황합니다. 무엇을 해야 할까요?
저는 우분투 서버 11.10을 실행하고 있습니다. ZNC는 로컬 시스템과 인터넷 모두에서 직접 쿼리할 때 올바른 200 OK 및 HTML로 응답합니다.
답변1
를 사용하여 mod_proxy_http도 활성화해야 합니다 sudo a2enmod proxy_http
.