mod_proxy warning - status line - please assist
mod_proxy warning - status line - please assist
am 17.10.2003 09:26:27 von Marco Muishout
Hi,
I have the following situation:
* Local client (IE5/6) connecting to a local site apache server (2.0.47),
serving local static content which is cached on the apache server.
* The local apache server is also running mod_proxy, which forwards all JSP
requests to a central site apache server (also 2.0.47).
* The central site apache server is connected to tomcat 4.1.24 using mod_jk2
(2.0.2).
So - Every time a local client calls upon a JSP page, the request is
forwarded by the local apache server to the central apache server, through
mod_jk, to tomcat. Then tomcat passes the reply back through mod_jk2, back
to the central apache server, back to the local apache server, back to the
client. The JSP application works fine, the client does not see any problem.
Here's my problem, though:
EVERY TIME a JSP page is requested by a client, I see a warning in the local
apache server error log file. It looks like mod_proxy does not completely
like the status reply it is receiving from the central apache server:
local apache server error_log:
*************************
[Thu Oct 09 17:57:40 2003] [debug] proxy_http.c(109): proxy: HTTP:
canonicalising URL //centralserver:7300/ematrix/emxLogin.jsp
[Thu Oct 09 17:57:40 2003] [debug] mod_proxy.c(459): Trying to run
scheme_handler
[Thu Oct 09 17:57:40 2003] [debug] proxy_http.c(1076): proxy: HTTP: serving
URL http://centralserver:7300/ematrix/emxLogin.jsp?js=yes&refres h=true
[Thu Oct 09 17:57:40 2003] [debug] proxy_http.c(221): proxy: HTTP connecting
http://centralserver:7300/ematrix/emxLogin.jsp?js=yes&refres h=true to
centralserver:7300
[Thu Oct 09 17:57:40 2003] [debug] proxy_util.c(1203): proxy: HTTP: fam 2
socket created to connect to centralserver
[Thu Oct 09 17:57:41 2003] [debug] proxy_http.c(370): proxy: socket is
connected
[Thu Oct 09 17:57:41 2003] [debug] proxy_http.c(404): proxy: connection
complete to xxx.xxx.xxx.xx:7300 (centralserver)
[Thu Oct 09 17:57:41 2003] [warn] proxy: bad HTTP/1.1 status line returned
by /ematrix/emxLogin.jsp (GET)
It seems that mod_proxy does not like the status line as returned by the
central apache server. Here's what the central server returned:
HTTP/1.1 200
Date: Fri, 17 Oct 2003 07:01:10 GMT
Server: Apache/2.0.47 (Win32) mod_jk2/2.0.2
Set-Cookie: JSESSIONID=5452BDF434A45FD1FED2CFA0A8DB9F62; Path=/ematrix
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
There is a space behind the '200' status, which as far as I can tell should
be accepted by mod_proxy.
Since this has to do with an enterprise-wide application, we absolutely need
this warning to go away as it is clogging our log files. Does anyone have an
idea why mod_proxy does not accept this status line, or what I should do to
make the status line correct again?
I read somewhere that mod_jk2 'strips' the reason-phrase from the status
line, but I have not seen this confirmed.
Any help is highly appreciated.
Thanks,
Marco
Re: mod_proxy warning - status line - please assist
am 17.10.2003 11:38:55 von kjha
This is a multi-part message in MIME format.
------=_NextPart_000_0013_01C394C0.954C1990
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
thats becoz the server above it sent a=20
"HTTP/1.1 200" instead of "HTTP/1.1 200 OK"
the after the status number 200 apache was expecting an "OK" :) =20
"Marco Muishout" wrote in message =
news:bmo5l9$of0$1@sea.gmane.org...
> Hi,
>=20
> I have the following situation:
>=20
> * Local client (IE5/6) connecting to a local site apache server =
(2.0.47),
> serving local static content which is cached on the apache server.
> * The local apache server is also running mod_proxy, which forwards =
all JSP
> requests to a central site apache server (also 2.0.47).
> * The central site apache server is connected to tomcat 4.1.24 using =
mod_jk2
> (2.0.2).
>=20
> So - Every time a local client calls upon a JSP page, the request is
> forwarded by the local apache server to the central apache server, =
through
> mod_jk, to tomcat. Then tomcat passes the reply back through mod_jk2, =
back
> to the central apache server, back to the local apache server, back to =
the
> client. The JSP application works fine, the client does not see any =
problem.
>=20
> Here's my problem, though:
> EVERY TIME a JSP page is requested by a client, I see a warning in the =
local
> apache server error log file. It looks like mod_proxy does not =
completely
> like the status reply it is receiving from the central apache server:
>=20
> local apache server error_log:
> *************************
> [Thu Oct 09 17:57:40 2003] [debug] proxy_http.c(109): proxy: HTTP:
> canonicalising URL //centralserver:7300/ematrix/emxLogin.jsp
> [Thu Oct 09 17:57:40 2003] [debug] mod_proxy.c(459): Trying to run
> scheme_handler
> [Thu Oct 09 17:57:40 2003] [debug] proxy_http.c(1076): proxy: HTTP: =
serving
> URL =
http://centralserver:7300/ematrix/emxLogin.jsp?js=3Dyes&refr esh=3Dtrue
> [Thu Oct 09 17:57:40 2003] [debug] proxy_http.c(221): proxy: HTTP =
connecting
> http://centralserver:7300/ematrix/emxLogin.jsp?js=3Dyes&refr esh=3Dtrue =
to
> centralserver:7300
> [Thu Oct 09 17:57:40 2003] [debug] proxy_util.c(1203): proxy: HTTP: =
fam 2
> socket created to connect to centralserver
> [Thu Oct 09 17:57:41 2003] [debug] proxy_http.c(370): proxy: socket is
> connected
> [Thu Oct 09 17:57:41 2003] [debug] proxy_http.c(404): proxy: =
connection
> complete to xxx.xxx.xxx.xx:7300 (centralserver)
> [Thu Oct 09 17:57:41 2003] [warn] proxy: bad HTTP/1.1 status line =
returned
> by /ematrix/emxLogin.jsp (GET)
>=20
>=20
> It seems that mod_proxy does not like the status line as returned by =
the
> central apache server. Here's what the central server returned:
> HTTP/1.1 200
> Date: Fri, 17 Oct 2003 07:01:10 GMT
> Server: Apache/2.0.47 (Win32) mod_jk2/2.0.2
> Set-Cookie: JSESSIONID=3D5452BDF434A45FD1FED2CFA0A8DB9F62; =
Path=3D/ematrix
> Content-Type: text/html; charset=3DUTF-8
> Transfer-Encoding: chunked
>=20
> There is a space behind the '200' status, which as far as I can tell =
should
> be accepted by mod_proxy.
>=20
> Since this has to do with an enterprise-wide application, we =
absolutely need
> this warning to go away as it is clogging our log files. Does anyone =
have an
> idea why mod_proxy does not accept this status line, or what I should =
do to
> make the status line correct again?
>=20
> I read somewhere that mod_jk2 'strips' the reason-phrase from the =
status
> line, but I have not seen this confirmed.
>=20
> Any help is highly appreciated.
>=20
> Thanks,
>=20
> Marco
>=20
>=20
>=20
>=20
>=20
>=20
>
------=_NextPart_000_0013_01C394C0.954C1990
Content-Type: text/html;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
charset=3Dwindows-1252">
thats becoz the server above it sent a
"HTTP/1.1 200" instead of "HTTP/1.1 =
200=20
OK"
the after the status number 200 apache was expecting an =20
"OK" :)
"Marco Muishout" <
href=3D"mailto:Voicie@hotmail.com">Voicie@hotmail.com> wrote in =
message
href=3D"news:bmo5l9$of0$1@sea.gmane.org">news:bmo5l9$of0$1@s ea.gmane.org<=
/A>...
>=20
Hi,
>
> I have the following situation:
>
> * =
Local=20
client (IE5/6) connecting to a local site apache server =
(2.0.47),
>=20
serving local static content which is cached on the apache =
server.
> * The=20
local apache server is also running mod_proxy, which forwards all =
JSP
>=20
requests to a central site apache server (also 2.0.47).
> * The =
central=20
site apache server is connected to tomcat 4.1.24 using mod_jk2
>=20
(2.0.2).
>
> So - Every time a local client calls upon a =
JSP page,=20
the request is
> forwarded by the local apache server to the =
central=20
apache server, through
> mod_jk, to tomcat. Then tomcat passes the =
reply=20
back through mod_jk2, back
> to the central apache server, back to =
the=20
local apache server, back to the
> client. The JSP application =
works fine,=20
the client does not see any problem.
>
> Here's my problem, =
though:
> EVERY TIME a JSP page is requested by a client, I see a =
warning=20
in the local
> apache server error log file. It looks like =
mod_proxy does=20
not completely
> like the status reply it is receiving from the =
central=20
apache server:
>
> local apache server error_log:
>=20
*************************
> [Thu Oct 09 17:57:40 2003] [debug]=20
proxy_http.c(109): proxy: HTTP:
> canonicalising URL=20
//centralserver:7300/ematrix/emxLogin.jsp
> [Thu Oct 09 17:57:40 =
2003]=20
[debug] mod_proxy.c(459): Trying to run
> scheme_handler
> =
[Thu Oct=20
09 17:57:40 2003] [debug] proxy_http.c(1076): proxy: HTTP: =
serving
> URL=20
href=3D"http://centralserver:7300/ematrix/emxLogin.jsp?js=3D yes&refre=
sh=3Dtrue">http://centralserver:7300/ematrix/emxLogin.jsp?js =3Dyes&re=
fresh=3Dtrue
>=20
[Thu Oct 09 17:57:40 2003] [debug] proxy_http.c(221): proxy: HTTP=20
connecting
>
href=3D"http://centralserver:7300/ematrix/emxLogin.jsp?js=3D yes&refre=
sh=3Dtrue">http://centralserver:7300/ematrix/emxLogin.jsp?js =3Dyes&re=
fresh=3Dtrue=20
to
> centralserver:7300
> [Thu Oct 09 17:57:40 2003] [debug] =
proxy_util.c(1203): proxy: HTTP: fam 2
> socket created to connect =
to=20
centralserver
> [Thu Oct 09 17:57:41 2003] [debug] =
proxy_http.c(370):=20
proxy: socket is
> connected
> [Thu Oct 09 17:57:41 2003] =
[debug]=20
proxy_http.c(404): proxy: connection
> complete to =
xxx.xxx.xxx.xx:7300=20
(centralserver)
> [Thu Oct 09 17:57:41 2003] [warn] proxy: bad =
HTTP/1.1=20
status line returned
> by /ematrix/emxLogin.jsp (GET)
> =
>=20
> It seems that mod_proxy does not like the status line as =
returned by=20
the
> central apache server. Here's what the central server=20
returned:
> HTTP/1.1 200
> Date: Fri, 17 Oct 2003 07:01:10=20
GMT
> Server: Apache/2.0.47 (Win32) mod_jk2/2.0.2
> =
Set-Cookie:=20
JSESSIONID=3D5452BDF434A45FD1FED2CFA0A8DB9F62; Path=3D/ematrix
> =
Content-Type:=20
text/html; charset=3DUTF-8
> Transfer-Encoding: chunked
> =
>=20
There is a space behind the '200' status, which as far as I can tell=20
should
> be accepted by mod_proxy.
>
> Since this has =
to do=20
with an enterprise-wide application, we absolutely need
> this =
warning to=20
go away as it is clogging our log files. Does anyone have an
> =
idea why=20
mod_proxy does not accept this status line, or what I should do =
to
> make=20
the status line correct again?
>
> I read somewhere that =
mod_jk2=20
'strips' the reason-phrase from the status
> line, but I have not =
seen=20
this confirmed.
>
> Any help is highly appreciated.
> =
> Thanks,
>
> Marco
>
>
> =
>=20
>
>
>
------=_NextPart_000_0013_01C394C0.954C1990--
Re: mod_proxy warning - status line - please assist
am 17.10.2003 13:33:07 von Graham Leggett
Kaushal Jha, ZEDO wrote:
> thats becoz the server above it sent a
>
> "HTTP/1.1 200" instead of "HTTP/1.1 200 OK"
>
> the after the status number 200 apache was expecting an "OK" :)
Not strictly true - the spec says the line must read
"HTTP/. XXX ", and the response string
can be "". The thing is the space after the XXX and before the possibly
empty result string must be there.
Apparently the space is there though according to the original post, so
it could be a problem with the way Apache handles empty result strings.
Regards,
Graham
--
Re: mod_proxy warning - status line - please assist
am 17.10.2003 14:51:57 von kjha
keepchar = buffer[12];
if (keepchar == '\0') {
ap_log_error(APLOG_MARK, APLOG_WARNING, 0,
r->server, "proxy: bad HTTP/%d.%d status line "
"returned by %s (%s)", major, minor, r->uri,
r->method);
where char *buffer is the line of the server response "HTTP/#.# ###*"
yes true , to reframe , the apache proxy logs the error when it does not
see a space after the "200" in this case .
best of luck
----- Original Message -----
From: "Graham Leggett"
To:
Cc:
Sent: Friday, October 17, 2003 5:03 PM
Subject: Re: mod_proxy warning - status line - please assist
> Kaushal Jha, ZEDO wrote:
>
> > thats becoz the server above it sent a
> >
> > "HTTP/1.1 200" instead of "HTTP/1.1 200 OK"
> >
> > the after the status number 200 apache was expecting an "OK" :)
>
> Not strictly true - the spec says the line must read
> "HTTP/. XXX ", and the response string
> can be "". The thing is the space after the XXX and before the possibly
> empty result string must be there.
>
> Apparently the space is there though according to the original post, so
> it could be a problem with the way Apache handles empty result strings.
>
> Regards,
> Graham
> --
>
Re: mod_proxy warning - status line - please assist
am 19.10.2003 03:41:18 von Sean Farley
On Fri, 17 Oct 2003, Marco Muishout wrote:
> Hi,
>
> I have the following situation:
>
> * Local client (IE5/6) connecting to a local site apache server
> (2.0.47), serving local static content which is cached on the apache
> server.
> * The local apache server is also running mod_proxy, which forwards
> all JSP requests to a central site apache server (also 2.0.47).
> * The central site apache server is connected to tomcat 4.1.24 using
> mod_jk2 (2.0.2).
>
> So - Every time a local client calls upon a JSP page, the request is
> forwarded by the local apache server to the central apache server,
> through mod_jk, to tomcat. Then tomcat passes the reply back through
> mod_jk2, back to the central apache server, back to the local apache
> server, back to the client. The JSP application works fine, the client
> does not see any problem.
>
> Here's my problem, though:
> EVERY TIME a JSP page is requested by a client, I see a warning in the
> local apache server error log file. It looks like mod_proxy does not
> completely like the status reply it is receiving from the central
> apache server:
>
> local apache server error_log:
> *************************
> [Thu Oct 09 17:57:40 2003] [debug] proxy_http.c(109): proxy: HTTP:
> canonicalising URL //centralserver:7300/ematrix/emxLogin.jsp
> [Thu Oct 09 17:57:40 2003] [debug] mod_proxy.c(459): Trying to run
> scheme_handler
> [Thu Oct 09 17:57:40 2003] [debug] proxy_http.c(1076): proxy: HTTP: serving
> URL http://centralserver:7300/ematrix/emxLogin.jsp?js=yes&refres h=true
> [Thu Oct 09 17:57:40 2003] [debug] proxy_http.c(221): proxy: HTTP connecting
> http://centralserver:7300/ematrix/emxLogin.jsp?js=yes&refres h=true to
> centralserver:7300
> [Thu Oct 09 17:57:40 2003] [debug] proxy_util.c(1203): proxy: HTTP: fam 2
> socket created to connect to centralserver
> [Thu Oct 09 17:57:41 2003] [debug] proxy_http.c(370): proxy: socket is
> connected
> [Thu Oct 09 17:57:41 2003] [debug] proxy_http.c(404): proxy: connection
> complete to xxx.xxx.xxx.xx:7300 (centralserver)
> [Thu Oct 09 17:57:41 2003] [warn] proxy: bad HTTP/1.1 status line returned
> by /ematrix/emxLogin.jsp (GET)
>
>
> It seems that mod_proxy does not like the status line as returned by the
> central apache server. Here's what the central server returned:
> HTTP/1.1 200
> Date: Fri, 17 Oct 2003 07:01:10 GMT
> Server: Apache/2.0.47 (Win32) mod_jk2/2.0.2
> Set-Cookie: JSESSIONID=5452BDF434A45FD1FED2CFA0A8DB9F62; Path=/ematrix
> Content-Type: text/html; charset=UTF-8
> Transfer-Encoding: chunked
>
> There is a space behind the '200' status, which as far as I can tell should
> be accepted by mod_proxy.
>
> Since this has to do with an enterprise-wide application, we absolutely need
> this warning to go away as it is clogging our log files. Does anyone have an
> idea why mod_proxy does not accept this status line, or what I should do to
> make the status line correct again?
>
> I read somewhere that mod_jk2 'strips' the reason-phrase from the status
> line, but I have not seen this confirmed.
>
> Any help is highly appreciated.
>
> Thanks,
>
> Marco
On a persistent connection, the previous request may have an error in it
that upsets the module. I have seen a server returning a 304 with a
body which is against the standard. That can upset the module as the
body is not removed before the stream is read for the next request. You
would actually see all the headers and the body as text within the
browser.
This may not be the case here, yet it may be something like it.
Sean
----------------------
sean-apache@farley.org
Re: mod_proxy warning - status line - please assist
am 22.10.2003 13:27:57 von Marco Muishout
I commented the stuff out and it works. I also submitted a bug report.
Thanks guys
Kaushal Jha wrote:
> keepchar = buffer[12];
> if (keepchar == '\0') {
> ap_log_error(APLOG_MARK, APLOG_WARNING, 0,
> r->server, "proxy: bad HTTP/%d.%d status
> line " "returned by %s (%s)", major,
> minor, r->uri, r->method);
>
> where char *buffer is the line of the server response "HTTP/#.# ###*"
> yes true , to reframe , the apache proxy logs the error when it does
> not see a space after the "200" in this case .
>
> best of luck
>
>
> ----- Original Message -----
> From: "Graham Leggett"
> To:
> Cc:
> Sent: Friday, October 17, 2003 5:03 PM
> Subject: Re: mod_proxy warning - status line - please assist
>
>
> > Kaushal Jha, ZEDO wrote:
> >
> > > thats becoz the server above it sent a
> > >
> > > "HTTP/1.1 200" instead of "HTTP/1.1 200 OK"
> > >
> > > the after the status number 200 apache was expecting an "OK"
> > > :)
> >
> > Not strictly true - the spec says the line must read
> > "HTTP/. XXX ", and the response
> > string can be "". The thing is the space after the XXX and before
> > the possibly empty result string must be there.
> >
> > Apparently the space is there though according to the original
> > post, so it could be a problem with the way Apache handles empty
> > result strings.
> >
> > Regards,
> > Graham
> > --
> >