title: Failed to load resource: net::ERR_CONNECTION_RESET with Apache 2.4 and Chrome
body: <p>I use an application behind a reverse proxy using Apache 2.4 (<strong>mod_jk</strong>).</p>
  
  <p>When I request some page, it takes forever to load, and won't eventually load at all.</p>
  
  <p>After investigation, I discovered some subtle JavaScript errors that are absent when accessed directly (no reverse proxy).</p>
  
  <p>Delving further, it turned out that a specific <em>.js</em> file wouldn't complete loading, and I get a client side error: <strong>ERR_CONNECTION_RESET</strong> with a partially loaded <em>.js</em> file.</p>
  
  <p>I noticed that Apache2 and Tomcat both work smoothly together, which is not the case between Apache2 and Jetty 7.3.</p>
  
  <h2>PS: This error occurs only when external static IP addresses are involved.</h2>
  
  <p>It feels like there is a timeout somewhere.</p>
  
  <p>The logs below are related to a single <em>.js</em> resource request only (the one that causes the major problem).</p>
  
  <p><strong>access.log:</strong></p>
  
  <pre><code>client-ip-address - - [13/Jan/2016:15:35:14 +0000] "GET /mifos/webcontent/birt/ajax/lib/prototype.js HTTP/1.1" 200 47603
  </code></pre>
  
  <p><strong>error.log</strong> (with <strong>LogLevel debug</strong> and <strong>ProxyHTMLLogVerbose On</strong>):</p>
  
  <pre><code>    [Wed Jan 13 15:35:14.688949 2016] [authz_core:debug] [pid 31137:tid 3011484480] mod_authz_core.c(835): [client client-ip-address:53033] AH01628: authorization result: granted (no directives)
      [Wed Jan 13 15:35:14.689058 2016] [proxy:debug] [pid 31137:tid 3011484480] mod_proxy.c(1163): [client client-ip-address:53033] AH01143: Running scheme http handler (attempt 0)
      [Wed Jan 13 15:35:14.689071 2016] [proxy_ajp:debug] [pid 31137:tid 3011484480] mod_proxy_ajp.c(710): [client client-ip-address:53033] AH00894: declining URL http://server-local-ip-address:8080/mifos/webcontent/birt/ajax/lib/prototype.js
      [Wed Jan 13 15:35:14.689083 2016] [proxy:debug] [pid 31137:tid 3011484480] proxy_util.c(2140): AH00942: HTTP: has acquired connection for (server-local-ip-address)
      [Wed Jan 13 15:35:14.689093 2016] [proxy:debug] [pid 31137:tid 3011484480] proxy_util.c(2193): [client client-ip-address:53033] AH00944: connecting http://server-local-ip-address:8080/mifos/webcontent/birt/ajax/lib/prototype.js to server-local-ip-address:8080
      [Wed Jan 13 15:35:14.689104 2016] [proxy:debug] [pid 31137:tid 3011484480] proxy_util.c(2394): [client client-ip-address:53033] AH00947: connected /mifos/webcontent/birt/ajax/lib/prototype.js to server-local-ip-address:8080
      [Wed Jan 13 15:35:14.689158 2016] [proxy:debug] [pid 31137:tid 3011484480] proxy_util.c(2636): AH00951: HTTP: backend socket is disconnected.
      [Wed Jan 13 15:35:14.689590 2016] [proxy:debug] [pid 31137:tid 3011484480] proxy_util.c(2771): AH02824: HTTP: connection established with server-local-ip-address:8080 (server-local-ip-address)
      [Wed Jan 13 15:35:14.689628 2016] [proxy:debug] [pid 31137:tid 3011484480] proxy_util.c(2923): AH00962: HTTP: connection complete to server-local-ip-address:8080 (server-local-ip-address)
      [Wed Jan 13 15:35:15.141686 2016] [proxy:debug] [pid 31137:tid 3011484480] proxy_util.c(2155): AH00943: http: has released connection for (server-local-ip-address)
  </code></pre>
  
  <p><strong>mod-jk.log</strong> (nothing interesting except one repeated line ):</p>
  
  <pre><code>[Wed Jan 13 15:03:22 2016][30041:3075380928] [info] init_jk::mod_jk.c (3383): mod_jk/1.2.40 initialized
  </code></pre>