Apache returns 500 code on timeout instead of 408 code on RHEL 6

Solution Verified - Updated -

Issue

There are mod_rewrite rewrite rules in Apache httpd configuration file which redirects PUT requests to a custom CGI script. However, when a HTTP request is sent to httpd, if one specifies the content-length request header of X bytes and server does not receive X number of bytes within timeout period, 500 Internal Server Error instead of 408 Request Time Out is returned to the client by apache. This behavior is seen with any web-service/CGI developed behind apache.

Environment

  • Red Hat Enterprise Linux (RHEL) 6.x
    • httpd 2.2.15

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.