thats right, if i use http://xxx.xxx.xxx.xxx:123
basically "/axis2/service/MyService"
Main Topics
Browse All Topicsi am getting following error exactly after 120 seconds, when my web service takes longer than 120 seconds to respond! BUT if I use IP address : port instead of domain name, it does not time out (the specified port is not 80)
<title>502 Proxy Error</title>
</head><body>
<h1>Proxy Error</h1>
<p>The proxy server received an invalid
response from an upstream server.<br />
The proxy server could not handle the request <em><a href="/axis2/services/MySe
Reason: <strong>Error reading from remote server</strong></p></p>
<hr>
<address>Apache/2.0.52 (Red Hat) Server at www.xxxxxx.com Port 80</address>
</body></html>
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
thats right, if i use http://xxx.xxx.xxx.xxx:123
basically "/axis2/service/MyService"
So how do you tell your browser to use the proxy, i.e.: what tells the browser that it needs to go to the proxy server to forward the packets on? I'm thinking you may have something like proxy for all domain names, but not for IP addresses in the range that the target is.
Or you have an invalid DNS entry for that service. Or if you're using HTTPS you might have a certificate error (where the name doesn't match the IP address or the certificate has expired), which would break the chain of trust.
he has an apache mod_proxy configured that redirects requests apache gets on one network to another, kinda like a dnat in routing.
im having the same problem, but with a GET
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET
So you're using mod_proxy as a reverse proxy (with the ProxyPass or the [P] flag to the RewriteRule), is that right?
To contrast and be clear, forward proxy would have something like:
ProxyRequests On
ProxyVia On
<Proxy *>
Order deny,allow
Deny from all
Allow from mydomain.com
</Proxy>
and the reverse proxy would be something like:
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from xx.xx.xx.xx
</Proxy>
ProxyPass /axis2 http://mydomain.com/axis2
ProxyPassReverse /MyService http://some_other_host.som
Is that right?
The proxy error suggests an upstream proxy server is the problem. I'd suggest you first of all check the Allow from/Deny from statements in your httpd.conf. Also check for ProxyBlock statements. If you have any ProxyRemote statements in httpd.conf, these will specify to which upstream server directives will be passed. Also check for NoProxy statements, which will allow proxy bypass. If that's all okay, you could check your apache logs files for any errors coming from a proxy further up along the network path. Failing all that, I'd suggest you packet capture at the apache server's external interface, to see who is returning the proxy error. Problem is that you don't know who is the problematic host/proxy, so you need to isolate the source of the error.
Perhaps a description of the network environment and a copy of the httpd.conf would help here. It's better to try the stuff I've suggested above, before you respond with a description of the network (a lot of typing) and a copy of the httpd.conf.
Hope this helps.
Business Accounts
Answer for Membership
by: elf_binPosted on 2008-08-15 at 00:36:15ID: 22236519
I don't quite understand, but you're suggesting that if you use a URL with DNS names in it, you get a proxy error (from an upstream proxy I might add), but if you use the IP address, you don't get the error. Is that right? How do you tell your browser to use the proxy?