Re: HTTP/0.9 and mod_proxy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

On Oct 1, 2009, at 4:25 PM, Danijel wrote:

I have to reverse proxy a beast which speaks HTTP/0.9. The documentation
to mod_proxy says:

	This module implements a proxy/gateway for Apache. It implements
	proxying capability for FTP, CONNECT (for SSL), HTTP/0.9,
       HTTP/1.0, and HTTP/1.1.

The configuration simply is:

	ProxyPass / http://backend:9110/

But all I get is error 502. The log says:

	error reading status line from remote server backend

The tcpdump between Apache and the backend looks like this:

	GET /test HTTP/1.0
	Host: backend:9110
	User-Agent: curl/7.15.1 (x86_64-suse-linux) libcurl/7.15.1
	OpenSSL/0.9.8a zlib/1.2.3 libidn/0.6.0
	Accept: */*
	Max-Forwards: 10
	X-Forwarded-For: 127.0.0.1
	X-Forwarded-Host: localhost:4080
	X-Forwarded-Server: localhost

	<html><head/><body>AS2 Adapter is alive.</body></html>

This isn't the right part of the tcpdump. The back end must reply with something like:
  HTTP/1.1 200 OK
  Content-length: ... whatever

  and some content
You're looking at the request that goes to the back end, not the back ends' response.

If you've used the trick "follow tcp stream" in your Wireshark, and have only seen the above, then indeed there is no back end response to be found, so the proxy rightfully says: error reading status line from remote server backend.
- --
Best regards / met vriendelijke groet, Karel Kubat
Mob +31 6 2956 4861

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)

iEUEARECAAYFAkrFEbMACgkQ23FrzRzybNVpsgCgq541f3Dv7HBQczAiVHU1EsQ5
VngAmKtg7f4DJkZNhLHVmtUg8a6+lb0=
=b2gT
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux