Apache 2.4 [proxy_http:error] [proxy:error]

apache-2.4mod-proxyreverse-proxy

I have enabled Apache proxy and http_proxy modules in order to reverse proxy some requests coming on port 80, only for a virtualhost, to localhost:3000 (where nuxt with node is running).

The proxy configuration in the virtualhost is pretty easy:

ProxyRequests off
<Proxy *>
 Require all granted
</Proxy>
ProxyPreserveHost on
ProxyPass / http://localhost:3000/ retry=1 acquire=3000 timeout=3000 keepalive=off
ProxyPassReverse / http://localhost:3000/
 ProxyTimeout 3000
 ProxyVia full

Apache version is: Apache/2.4.18 (Ubuntu)

The problem is in the apache error log which is literally flooded by these two errors repeated intermittently:

[proxy_http:error] [pid :pid] (20014)Internal error (specific information not available): [client xxx.xxx.xxx.xxx:xxxxx] AH01102: error reading status line from remote server localhost:3000
[proxy:error] [pid :pid] [client xxx.xxx.xxx.xxx:xxxxx] AH00898: Error reading from remote server returned by /

I have followed many guides and suggestions (SetEnv proxy-initial-not-pooled 1, keepalive off, bla bla) but none helped. Anyone have a clue about this thing? Maybe it's not even an error and it must be so because ProxyRequests are off? However I can't have the log flooded by only this two errors.

Best Answer

[proxy:error] [pid :pid] [client xxx.xxx.xxx.xxx:xxxxx] AH00898: Error reading from remote server returned by /
This means that Apache could not read the response from the service behind ProxyPass. Perhaps the service on port 3000 actually does have issues serving it's content. Try looking for the issue there, try accessing the port directly.