GrepBoard/Manuals
605 manuals ·

Apache AH01102: error reading status line from remote server

·Tested on Apache httpd 2.4.71 · Python 3.12.16 (Docker) · 2026-11·Test scope ↓·4 steps

Diagnose Apache AH01102 by requesting the same path directly from the backend. Check whether it sends a status line, closes the connection, or times out.

output
[Sat Nov 21 23:28:04.705555 2026] [proxy_http:error] [pid 11:tid 35] (20014)Internal error (specific information not available): [client 127.0.0.1:37568] AH01102: error reading status line from remote server 127.0.0.1:18081[Sat Nov 21 23:28:04.705663 2026] [proxy:error] [pid 11:tid 35] [client 127.0.0.1:37568] AH00898: Error reading from remote server returned by /app/probe

Apache connected to the backend and failed to read the first line of its response. Send the same request to the address and port in the log and check for a status line such as HTTP/1.1 200 OK.

[1] Find AH01102 and the backend address in the Apache error log at the time of the failure. Read any preceding EOF or timeout message and match the timestamp to the request path and response code in the access log. Use the path from your ErrorLog configuration in the command below.

console
$ grep -E 'AH01102|AH00898|AH01114' /usr/local/apache2/logs/error_log | tail -n 20

The opening output shows two consecutive lines from docker logs for the test container. The backend read the request headers and closed the connection, and Apache returned 502 Proxy Error. When the status line cannot be read, the source logs AH01102 and then checks for a timeout. If the log shows AH01114 during connection setup, follow the AH01114 address and port checks. httpd 2.4.71 response-reading source

[2] Find the backend path in the ProxyPass rule for the virtual host that received the request. In the test, /app/probe on the proxy went to /probe on the backend.

/repro/proxy.conf
ProxyPass "/app/" "http://127.0.0.1:18081/" timeout=3

Compare the two URLs from the network Apache uses for its backend requests. A container's 127.0.0.1 belongs to its network namespace, so a probe of the host loopback reaches a different destination. These curl commands use the same paths as the test. Match the scheme, address, port, path, and HTTP method to the real request. With ProxyPreserveHost On, include the original Host value in the direct request. ProxyPass · ProxyPreserveHost

console
$ curl --http1.1 --max-time 5 -sv http://127.0.0.1:18081/probe -o /dev/null$ curl --http1.1 --max-time 5 -sv http://127.0.0.1:18080/app/probe -o /dev/null

[3] Check whether the direct request gets a status line. In the test, the Python client saw the backend close without a response, while the same request through Apache got a 502. An open port confirms only that the connection can be established.

console
$ python /repro/probe.py 18081 /probe EOFRemoteDisconnected: Remote end closed connection without response$ python /repro/probe.py 18080 /app/probe 502HTTP/1.1 502 Proxy Error
Direct request resultWhere to look
Connection closes before headersCheck the backend log at the request time for a worker exit, restart, or exception on that request.
Times out before the status lineCompare when the backend received the request with when it began responding. The ProxyPass timeout applies to backend socket I/O, while connectiontimeout applies to establishing the connection.
Returns a status line while the proxy still failsConfirm that both requests use the same backend path and Host value, then find the backend log entries at the time of the proxy failure.

[4] After fixing the backend, request the original path through Apache again. The test kept the address, paths, and Apache configuration fixed and changed the backend to send HTTP/1.1 200 OK. Both requests returned 200 and Apache logged no new AH01102. For your deployment, check for the expected response on that path and inspect the new log entries at the request time.

console
$ python /repro/probe.py 18080 /app/probe 200HTTP/1.1 200 OK

Analyze your Apache log in the browser ↗ — nothing is uploaded.

Check it with the HTTP status codes tool ↗ — calculated in your browser.

#apache#ah01102#mod_proxy_http#502