httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rafael Caceres <>
Subject [users@httpd] Different results using mod_proxy or mod_rewrite vs direct server
Date Wed, 07 Jan 2004 06:54:39 GMT
I'm setting up a HTTP/HTPPS reverse proxy server with apache on my DMZ.
The proxy will access an internal server ( to
provide content to outside users.
I've attempted using mod_proxy:
  ProxyPass /
  ProxyPassReverse /

and using mod_rewrite:
  RewriteRule /(.*)$$1 [P]

Everything seems to work fine (including the HTTPS proxy, cookies, etc.,
etc.), except that I'm getting:
Proxy Error
The proxy server received an invalid response from an upstream server
The proxy server could not handle the requet GET /perl/
Reason: Document contains no data

The very same URL: (that
runs under Apache::Registry) works just fine when used from inside the
LAN (that is, directly).

I also copied to the cgi-bin directory (to run it as a
standard CGI), and called the resulting URL: and what comes up is the
text of the generated HTML page.
Strangely enough, some other perl scripts (in cgi-bin or perl) work fine
through the proxy.

The proxy is Apache 1.3.29, mod_perl 1.27. The server inside the LAN is:
Apache 1.3.26,mod_perl 1.27
I'm crossposting because the problem seems to be originated in the
combination perl/reverse proxy.

Any help will be appreciated.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message