2012-08-17 13 views
6

Utilizzo Apache 2.2.16 e Tomcat 7.0.16. Ho 3 istanze di Tomcat che eseguono 3 diversi file di guerra. Per bypassare la richiesta, ho configurato httpd con mod_proxy.Errore Mod_Proxy 502-Proxy a intermittenza

3 istanze di Tomcat sono in esecuzione in 8080, 8090, 8099. trovare la configurazione httpd sotto

ProxyPass /bor `http://localhost:8080/bor/ 
ProxyPass /borcafews/ `http://localhost:8090/borcafews/ 
ProxyPass /borechws/ `http://localhost:8099/borechws/ 

intermittenza mi stavo 502 Errore proxy nel 8090 e 8099. Così ho impostato le variabili di seguito nella httpd .conf

<Location /borcafews/> 
SetEnv force-proxy-request-1.0 1 
SetEnv proxy-nokeepalive 1 
</Location>` 

Dopo aver impostato questa configurazione il borcafews non dava alcun errore Proxy ma per borechws sta fallendo con l'errore 502-proxy in modo intermittente.

proxy: Error reading from remote server returned by /borechws/services/bor (20014)Internal error: proxy: error reading status line from remote server localhost:8099

Ti prego, aiutami a risolvere questo problema.

risposta

0

Non sono sicuro che si tratti di un errore nella configurazione di Apache: È completamente possibile che l'app di tomcat restituisca una risposta errata.

Utilizzare tcpdump o tshark per acquisire il traffico sulle porte pertinenti. Ciò verificherà che l'applicazione tomcat restituisca risposte HTTP valide.

Problemi correlati