You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Davi Arnaut <da...@haxent.com.br> on 2006/04/20 03:57:45 UTC

mod_proxy yields a 404 on timeout

Hi,

When mod_proxy fails to connect to a backend (ap_proxy_connect_backend) due to
a timeout, or something else, and the connection is a standard proxy request
(i.e. non-reverse) it returns a status code 404 (Not found). Is there any reason
why we are not returning a 500 (Gateway Timeout) code ?

Quoting RFC 2616:

10.5.5 504 Gateway Timeout

   The server, while acting as a gateway or proxy, did not receive a
   timely response from the upstream server specified by the URI (e.g.
   HTTP, FTP, LDAP) or some other auxiliary server (e.g. DNS) it needed
   to access in attempting to complete the request.

--
Davi Arnaut