|
Home > Archive > Apache Server configuration support > November 2006 > ReversProxy problem
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 |
ReversProxy problem
|
|
|
| Hi experts,
I'm runnig Apache 2.2.3 on CentOS 4.4 with the following proxy
settings:
#ProxyReverse Settings
ProxyRequests off
ProxyPass / http://172.22.1.15:8080/
ProxyPassReverse / http://172.22.1.15:8080/
The problem is that I get the following error for maybe 10% of the
connections.
"Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /Default.aspx.
Reason: Error reading from remote server"
If I reload the page it works again...
See the debug output:
Not working:
[Fri Nov 03 21:06:23 2006] [debug] mod_proxy_http.c(54): proxy: HTTP:
canonicalising URL //172.22.1.15:8080/Login.aspx
[Fri Nov 03 21:06:23 2006] [debug] proxy_util.c(1378): [client
192.168.14.24] proxy: http: found worker http://172.22.1.15:8080/ for
http://172.22.1.15:8080/Login.aspx?...2fDefault.aspx, referer:
http://192.168.10.100/Login.aspx?Re...%2fDefault.aspx
[Fri Nov 03 21:06:23 2006] [debug] mod_proxy.c(756): Running scheme
http handler (attempt 0)
[Fri Nov 03 21:06:23 2006] [debug] mod_proxy_http.c(1662): proxy: HTTP:
serving URL
http://172.22.1.15:8080/Login.aspx?...%2fDefault.aspx
[Fri Nov 03 21:06:23 2006] [debug] proxy_util.c(1798): proxy: HTTP: has
acquired connection for (172.22.1.15)
[Fri Nov 03 21:06:23 2006] [debug] proxy_util.c(1858): proxy:
connecting http://172.22.1.15:8080/Login.aspx?...%2fDefault.aspx
to 172.22.1.15:8080
[Fri Nov 03 21:06:23 2006] [debug] proxy_util.c(1951): proxy: connected
/Login.aspx?ReturnUrl=%2fDefault.aspx to 172.22.1.15:8080
[Fri Nov 03 21:06:23 2006] [debug] proxy_util.c(2141): proxy: HTTP:
connection complete to 172.22.1.15:8080 (172.22.1.15)
[Fri Nov 03 21:06:23 2006] [info] [client 172.22.1.15] (32)Broken pipe:
core_output_filter: writing data to the network
[Fri Nov 03 21:06:23 2006] [error] [client 192.168.14.24] proxy: error
reading status line from remote server 172.22.1.15, referer:
http://192.168.10.100/Login.aspx?Re...%2fDefault.aspx
[Fri Nov 03 21:06:23 2006] [error] [client 192.168.14.24] proxy: Error
reading from remote server returned by /Login.aspx, referer:
http://192.168.10.100/Login.aspx?Re...%2fDefault.aspx
[Fri Nov 03 21:06:23 2006] [debug] proxy_util.c(1816): proxy: HTTP: has
released connection for (172.22.1.15)
Working:
[Fri Nov 03 21:11:16 2006] [debug] mod_proxy_http.c(54): proxy: HTTP:
canonicalising URL //172.22.1.15:8080/Login.aspx
[Fri Nov 03 21:11:16 2006] [debug] proxy_util.c(1378): [client
192.168.14.24] proxy: http: found worker http://172.22.1.15:8080/ for
http://172.22.1.15:8080/Login.aspx?...2fDefault.aspx, referer:
http://192.168.10.100/Login.aspx?Re...%2fDefault.aspx
[Fri Nov 03 21:11:16 2006] [debug] mod_proxy.c(756): Running scheme
http handler (attempt 0)
[Fri Nov 03 21:11:16 2006] [debug] mod_proxy_http.c(1662): proxy: HTTP:
serving URL
http://172.22.1.15:8080/Login.aspx?...%2fDefault.aspx
[Fri Nov 03 21:11:16 2006] [debug] proxy_util.c(1798): proxy: HTTP: has
acquired connection for (172.22.1.15)
[Fri Nov 03 21:11:16 2006] [debug] proxy_util.c(1858): proxy:
connecting http://172.22.1.15:8080/Login.aspx?...%2fDefault.aspx
to 172.22.1.15:8080
[Fri Nov 03 21:11:16 2006] [debug] proxy_util.c(1951): proxy: connected
/Login.aspx?ReturnUrl=%2fDefault.aspx to 172.22.1.15:8080
[Fri Nov 03 21:11:16 2006] [debug] proxy_util.c(2045): proxy: HTTP: fam
2 socket created to connect to 172.22.1.15
[Fri Nov 03 21:11:16 2006] [debug] proxy_util.c(2141): proxy: HTTP:
connection complete to 172.22.1.15:8080 (172.22.1.15)
[Fri Nov 03 21:11:16 2006] [debug] mod_proxy_http.c(1448): proxy: start
body send
[Fri Nov 03 21:11:16 2006] [debug] mod_proxy_http.c(1537): proxy: end
body send
[Fri Nov 03 21:11:16 2006] [debug] proxy_util.c(1816): proxy: HTTP: has
released connection for (172.22.1.15)
>From what I can see I get "Broken pipe: core_output_filter: ..." when
it goes wrong and I never get the "proxy: HTTP: fam 2 socket created to
connect to 172.22.1.15"
I have seen a few other having the same problem but never a solution,
is it a timer problem?
Can anybody help me figure out what the problem is??
Regards
MAD
| |
| Davide Bianchi 2006-11-05, 7:20 am |
| On 2006-11-04, MAD <mathias@adler.nu> wrote:
> "Proxy Error
>
> The proxy server received an invalid response from an upstream server.
> The proxy server could not handle the request GET /Default.aspx.
It means: the other machine doesn't respond to me.
There isn't much you can do about it, unless you remove completely
Apache from the picture and use a simple NAT/PAT to route the connection
directly to the destination server.
Davide
--
If Windows sucked it would be good for something.
| |
|
| Alright, I just found this bug report (39499):
http://issues.apache.org/bugzilla/show_bug.cgi?id=39499
So my workaround for now was to downgrade to apache1.3. Works like a
charm..
//MAD
Davide Bianchi wrote:
> On 2006-11-04, MAD <mathias@adler.nu> wrote:
>
> It means: the other machine doesn't respond to me.
> There isn't much you can do about it, unless you remove completely
> Apache from the picture and use a simple NAT/PAT to route the connection
> directly to the destination server.
>
> Davide
>
> --
> If Windows sucked it would be good for something
|
|
|
|
|