The HTTP proxy of apache22 has an error. Proxy error!

Source: Internet
Author: User

 

The details are as follows:

Proxy Error
The proxy server has ed an invalid response from an upstream server.
The proxy server cocould not handle the request get /.

Reason: DNS lookup failure for: localhost

Solutions provided by Google:

With the following 'murxaround 'it's working now:
-Added 'keeplive off' in httpd. conf-> no effect
-Set keep-alive timeout to 1 day in IIS-> no effect
-Added
'Setenv force-proxy-request-1.0 1'
'Setenv proxy-nokeepalive 1'
In httpd. conf
It's working now without errors since 30 hours...
Don't know if first steps were necessary, I let them in place
 

So, modify httpd. conf.
 

<Virtualhost *: 80>
Serveradmin asion@mail.com
Servername www.domain.com
Proxypass/http: // 192.168.0.92
Proxypassreverse/http: // 192.168.0.92
Setenv force-proxies-request-1.0.1
Setenv proxy-nokeepalive 1
</Virtualhost>

Restart Apache and refresh it n times. Normal !!

[Note:] Paste Apache official Chinese instructions for protocol adjustments
Whenmod_proxyWhen sending a request to an original server that does not correctly implement a persistent connection (keepalive) or HTTP/1.1, you can set two environment variables to send a keepalive connection). These two variables areSetEnvCommand.

<Location/buggyappserver/>
Proxypass http: // buggyappserver: 7001/Foo/
Set setenv force-proxy-request-1.0 1
Setenv proxy-nokeepalive 1
</Location>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.