Tomcat의 프록시로 아파치를 설정했지만 페이지를 타겟팅 할 때 다음 오류가 발생합니다. 때때로 빈 페이지 나 503이 나타납니다.
[오류]
[Mon Dec 03 04:58:16 2012] [error] proxy: ap_get_scoreboard_lb(2) failed in child 29611 for worker proxy:reverse
[Mon Dec 03 04:58:16 2012] [error] proxy: ap_get_scoreboard_lb(1) failed in child 29611 for worker https://localhost:8443/
[Mon Dec 03 04:58:16 2012] [error] proxy: ap_get_scoreboard_lb(0) failed in child 29611 for worker http://localhost:8080/
다음과 같이 vm에 두 개의 호스트가 구성되어 있습니다.
[http 호스트]
<VirtualHost *:80>
  ServerName www.mysite.net
  ServerAlias mysite.net
  ProxyRequests Off
  ProxyPreserveHost On
  <Proxy *>
    Order deny,allow
    Allow from all
  </Proxy>
  ProxyPass / http://localhost:8080/ retry=0
  ProxyPassReverse / http://localhost:8080/ retry=0
</VirtualHost>
[ssl vhost]
<VirtualHost *:443>
        ServerName www.mysite.net
        ServerAlias mysite.net
        ErrorLog /var/log/apache2/error.log
        LogLevel warn
        CustomLog /var/log/apache2/access.log combined
        ServerSignature On
        SSLEngine on
        SSLProxyEngine on
        SSLCertificateFile /etc/apache2/ssl/server.crt
        SSLCertificateKeyFile /etc/apache2/ssl/server.key
        ProxyRequests Off
        ProxyPreserveHost On
        ProxyPass / https://localhost:8443/ retry=0
        ProxyPassReverse / https://localhost:8443/ retry=0
</VirtualHost>
내 시스템 세부 정보는 다음과 같습니다. Apache / 2.2.22 (Ubuntu) mod_jk / 1.2.32 mod_ssl / 2.2.22 OpenSSL / 1.0.1 mod proxy_http도 활성화됩니다.
답변
이 사이트 에서 발견 된 아파치를 중지했다가 apachectl graceful다시 시작 하는 것과 다시 시작하는 것 (즉, 실제로 apachectl restart 와 달리 중지하고 시작 하는 것)에는 차이가있는 것 같습니다 .
This is a bit of a guess, and probably wrong, but does stopping and
starting the server rather than restarting (they're different,
restarting (including gracefully) doesn't kill the master process)
help? As I understand it, there are issues in mod_proxy regarding the
scoreboard size when changes to the config are made between restarts.
