DevHeads.net

How to fix HTTP 100-continue from client HTTP 417 error in Apache 2.4.10?

Hello,

I am using Apache 2.4.10 server on Debian 8.11.

I am having following issue = Request sender is sending Expect:
100-Continue" in header.

Reference URL suggesting the fix =
<a href="https://stackoverflow.com/questions/3889574/apache-and-mod-proxy-not-handling-http-100-continue-from-client-http-417" title="https://stackoverflow.com/questions/3889574/apache-and-mod-proxy-not-handling-http-100-continue-from-client-http-417">https://stackoverflow.com/questions/3889574/apache-and-mod-proxy-not-han...</a>

How to fix this issue? Thanks.

Regards,
Amey.

Comments

Re: How to fix HTTP 100-continue from client HTTP

By Dan Ehrlich at 02/06/2019 - 03:35

Looks like you just need to enable mod_headers (<a href="http://httpd.apache.org/docs/current/mod/mod_headers.html" title="http://httpd.apache.org/docs/current/mod/mod_headers.html">http://httpd.apache.org/docs/current/mod/mod_headers.html</a>) and then add the below text that they mention in the Stack Over question?

You might need to run “a2enmod headers” from terminal once to get it loaded into Apache HTTPD forever, but that’s it.

Btw put that text (assuming you’re fine running it for every website on that server) in either /etc/apache2/apache2.conf. Might be /etc/apache2/httpd.conf can’t remember

Does this help?


<IfModule mod_headers.c>
RequestHeader unset Expect early
</IfModule>

Re: How to fix HTTP 100-continue from client HTTP

By Amey Abhyankar at 02/06/2019 - 04:54

Hello Dan,

On Wed, 6 Feb 2019 at 13:05, Dan Ehrlich < ... at ehrlichserver dot com> wrote:
i) Put below code at end of the apache2.conf file & save it.
ii) Run “a2enmod headers”
iii) restart apache2
iv) Test back.

Am I right?