When using Apache to reverse proxy IIS, the following errors always appear:
ProxyError
Theproxyserverreceivedaninvalidresponsefromanupstreamserver.
TheproxyservercouldnothandletherequestGET/.
R eason:Errorreadingfromremoteserver
The official explanation for this problem is: when Mod_ When a proxy sends a request to an original server that does not properly implement the persistent connection (keepalive) or http/1.1, it can send the HTTP/1.0 request without the persistent connection (keepalive) by setting two environment variables. These two variables are set through the setenv instruction
The solution is as follows: just copy the following two pieces of code into httpd.conf
SetEnvforce-proxy-request-1.01
SetEnvproxy-nokeepalive1
You can copy to & lt; VirtualHost*> Between & lt/ VirtualHost>, Valid only within a virtual machine
You can also copy to & lt; VirtualHost> Outside, so that all reverse agents can use the above two pieces of code
Similar Posts:
- [Solved] Nginx proxy Timeout: upstream timed out (110: Connection timed out)
- Proxy error :couldnot proxy request [How to Solve]
- Nginx normal user startup configuration error: && springboot-swagger & Unable to infer base url
- Websocket failed: Error during WebSocket handshake: Unexpected response code: 400 [Solved]
- Solve the 400 error of nginx forwarding websocket
- Nginx Timeout Error: upstream timed out (110: Connection timed out) while reading response header from ups…
- Differences of urllib, urllib2, httplib and httplib2 libraries in Python
- How to Solve Python Error: crawler uses proxy anti blocking IP: http error 403: forbidden
- [Solved] Nginx reverse proxy 502 permission denied
- [Solved] Postman Failed to send request: Error: Client network socket disconnected before secure TLS connection was established