Apache and mod_proxy do not handle HTTP 100-continue from HTTP client 417

'let's create some webby magic and use Apache for our tomcat server, sending requests to tomcat to port 8080. I have a problem with Apache and mod_proxy to forward requests. It seems that the client (web application) sends an HTTP 100-continue, to which Apache responds with 417 wait with an error.

When I get Apache out of the picture and send requests directly to tomcat on port 8080, the request will be successful and the client will be sent 200 OK.

My Apache configuration is as follows:

  ServerName abcproxy DocumentRoot / apps / apache-content / default

AddOutputFilterByType DEFLATE text/html text/plain text/css application/javascript text/xml

BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

ExpiresActive on
ExpiresDefault "access 0 seconds"

ProxyPass / http://127.0.0.1:8080/
ProxyPassReverse / http://127.0.0.1:8080/

        ProxyPreserveHost On

CustomLog /apps/ocp-logs/apache/abcproxy.log combined

Does anyone see where I'm wrong?

+10
source share
1 answer

Apache Expect, . 46709 47087.

, Expect PUT POST . // , ( PUT POST). , , , , 417.

.NET-, ServicePointManager.Expect100Continue Property false, .

, , HTTP 1.0 (, ) Expect mod_header .

Expect mod_headers, :

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

, "100 Continue" , Expect .

+24

Source: https://habr.com/ru/post/1693565/


All Articles