On Mon, 13 May 2002, Ian Macdonald wrote:

> I'm setting up a new server and wish to run two Apache configurations,
> one vanilla and one mod_perl. I've configured pretty much according to
> Stas' excellent guide, using the rewrite module to push the perl
> requests to the second (ie mod_perl) server.
> 
> Versions; HP-UX 10.20, Apache 1.3.24, mod_perl 1.26.
> 
> It's _nearly_ working, but I'm getting one weird piece of behaviour
> which looks to me like the sort of problem someone with more experience
> will recognise very swiftly; when I request a perl script via the
> mod_perl-enabled locations, the content is preceded by a hex number,
> which corresponds very closely to the size of the content, and then a
> blank line, as shown below:
> 
> 4e9
> 
> PID = 3282
> DOCUMENT_ROOT="/opt/web_root/html"
> GATEWAY_INTERFACE="CGI-Perl/1.1"
> etc.

Your backend send chunked response - I think you use 1.3.24 mod_proxy
and it probably send HTTP/1.1 request.
You should force mod_perl to HTTP/1.0

Another way is to use mod_accel. It always uses HTTP/1.0 with backend
and more advanced then mod_proxy.

Igor Sysoev
http://sysoev.ru

Reply via email to