|
Home > Archive > Apache Server configuration support > May 2006 > Apache as reverse proxy to IIS, strange error
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Apache as reverse proxy to IIS, strange error
|
|
| gm1974 2006-05-22, 1:16 pm |
| Hi there,
On a Windows 2003 Server box, I use Apache 2.2 as a reverse proxy to
Tomcat and IIS 6.0 with virtual hosts.
Now, when you request an address proxied to IIS, some times you get
this:
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /.
Reason: Error reading from remote server
The strange thing is, if you refresh your browser after getting that
error, the request is processed successfully and you get the correct
response from IIS via proxy.
Note also that this error screen does not show up every time you make a
request, but only in the 30-40% of times, and only if the app. server
proxied to is IIS (never happens with Tomcat).
This is an example of a virtual host I have in my configuration:
<VirtualHost *:80>
ServerName mydomain.homeip.net
ProxyPass / http://localhost:8888/mydomain/
ProxyPassReverse / http://localhost:8888/mydomain/
</VirtualHost>
Apache and IIS both do have default settings in all sections, except
for Apache, where I obviously load mod_proxy and all the stuff needed
to enable the reverse proxy and virtual hosts features.
many thanks to anyone who wants to help me!
giovanni
| |
| Davide Bianchi 2006-05-22, 1:16 pm |
| On 2006-05-22, gm1974 <gmascia@gmail.com> wrote:
> The proxy server received an invalid response from an upstream server.
> The proxy server could not handle the request GET /.
> Reason: Error reading from remote server
Meaning: the server I was proxied to didn't responded or responded with
gibberish.
I'd start some debugging on the IIS side, to see when that happens and
what kind of request is received and what is sent as response.
Davide
--
More systems have been wiped out by admins than any hacker could do
in a lifetime. - Rick Furniss
| |
| gm1974 2006-05-23, 1:17 pm |
| Actually I just had to give a look to Apache's error logs, where I
found out the problem was a bad "status code" received from IIS. That
was likely due to keepalive/timeout misunderstanding between IIS and
Apache, as I found out after some Google search.
I tried to disable keep-alive in IIS, now it seems all working fine.
Thanks,
g.m.
|
|
|
|
|