Discussion:
Bad HTTP 1.1 request
Ueli Kessler
2003-10-03 12:06:51 UTC
Permalink
Hello guys,

I am proxying several different URL's and directories with the
mod_proxy.
Everything runs just fine except for one URL which comes back with a Bad
Request.

Here is the logfile:

[Thu Oct 02 20:44:19 2003] [error] [client xxx.xxx.xxx.xxx] proxy: Error
reading from remote server returned by
/de/oks/Heineken/styles/style_yellow.css, referer:
http://www.xxx.com/xx/xxx/xxxxxxx/xxxxx?customerId=xxx
<http://www.xxx.com/xx/xxx/xxxxxxx/xxxxx?customerId=xxx&xxx=23694546&xxx
=23694546&tn=5000&tid=441726&re=2&lang=1&ben=4528>
&xxx=23694546&xxx=23694546&tn=5000&tid=441726&re=2&lang=1&ben=4528
[Thu Oct 02 20:44:20 2003] [warn] proxy: bad HTTP/1.1 status line
returned by /xx/xxxx/xxxxxxx/img/0.gif (GET)

And here is the VirtualHost in the Apache Conf:

<VirtualHost xxx.xxx.xxx.xxx>
ServerName xxx.xxxxxxxx.xxx <http://www.xxx/>
ErrorLog logs/xxxxxxx-error.log
CustomLog logs/xxxxxxx-access.log combined
<IfModule mod_proxy.c>
ProxyRequests Off
<ProxyMatch xxxx.xxxxxxx.xxx <http://www.xxxxxxx.xxx/> >
Order deny,allow
#Deny from all
Allow from all
</ProxyMatch>
ProxyPass /xxx/ http://xxx.xxxxxx.xxx:8080/xxx/
ProxyPassReverse /xxx/ http://xxx.xxxxxx.xxx:8080/xxx/
ProxyPass / http://xxx.xxxxxx.xxx/
ProxyPassReverse / http://xxx.xxxxxx.xxx/
SetEnv proxy-nokeepalive 1
SetEnv force-proxy-request-1.0 1
</IfModule>
</VirtualHost>

The backend system is running with a Tomcatserver.

I have no idea, where this bad status line is coming from, since I force
the request protocol to be in HTTP/1.0 and Tomcat will serve the Request
in the same protocol back.

Any hints??

Thank you very much for your help!!!

Cheeers,

Ueli



.
Graham Leggett
2003-10-03 17:33:03 UTC
Permalink
Post by Ueli Kessler
I have no idea, where this bad status line is coming from, since I force
the request protocol to be in HTTP/1.0 and Tomcat will serve the Request
in the same protocol back.
The best thing to do is sniff the connection to determine what the
status line is exactly, this way you can see whether there is something
wrong with the status line or not.

One tool that can do this is tcpflow, there are others.

Regards,
Graham
--
Ueli Kessler
2003-10-07 07:17:32 UTC
Permalink
Hi Graham,
I've never dealt with status lines.
What are status lines exactly and what are they needed for?

Thank you very much for a quick update.

Kind Regards,

-Ueli

-----Original Message-----
From: Graham Leggett [mailto:***@sharp.fm]
Sent: Freitag, 3. Oktober 2003 19:33
To: modproxy-***@apache.org
Subject: Re: Bad HTTP 1.1 request
Post by Ueli Kessler
I have no idea, where this bad status line is coming from, since I
force
the request protocol to be in HTTP/1.0 and Tomcat will serve the
Request
Post by Ueli Kessler
in the same protocol back.
The best thing to do is sniff the connection to determine what the
status line is exactly, this way you can see whether there is something
wrong with the status line or not.

One tool that can do this is tcpflow, there are others.

Regards,
Graham
--


.
Graham Leggett
2003-10-07 19:07:38 UTC
Permalink
Post by Ueli Kessler
I've never dealt with status lines.
What are status lines exactly and what are they needed for?
The status line describes the response the webserver returns to the
browser when it receives a request. One of the more common status lines
is "200 OK", another one is "304 Not Modified". If the remote webserver
does not return a status line, or if the status line is corrupt, the
proxy will give an error.

Regards,
Graham
--

Loading...