httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abramow, Michael [JJPAU]" <MABRA...@JJPAU.JNJ.COM>
Subject RE: Passing a cgi scrip using mod_proxy to Server behind Firewall
Date Thu, 08 Aug 2002 04:16:57 GMT
Investigating the logs on the server behind the FW. (foo.com) see thread.


- does it work in a browser connected directly (not via proxy) to foo.com?
Yes.
The successful access_log file is:
"GET /connect/html/modules.php?op=modload&name=Calendar&file=index HTTP/1.0" 200 31258

- when you hit it via the proxy, what do you see in the access and error log in foo.com?
The unsuccesfull access_log is:
"GET /connect/html/modules.php%3Fop=modload&name=Calendar&file=index?op=modload&name=Calendar&file=index
HTTP/1.1" 404 376


While static content works fine both internally and via proxy:
"GET /connect/html/download.php HTTP/1.0" 200 20202

Any ideas why I'm getting this and how to solve ?
Thanks
Michael



-----Original Message-----
From: Boyle Owen [mailto:Owen.Boyle@swx.com]
Sent: Wednesday, August 07, 2002 6:49 PM
To: users@httpd.apache.org
Subject: RE: Passing a cgi scrip using mod_proxy to Server behind
Firewall


>From: Abramow, Michael [JJPAU] [mailto:MABRAMOW@JJPAU.JNJ.COM]

> am using an Apache 1.3.23 server on Solaris 2.8 as a reverse 
>proxy with mod_proxy.
>
>But the problem lies in passing a cgi script to say
>http://foo.com/cgi-bin/abc?def+ghi+jki
>
>trying
>
>   ProxyPass         /test/ http://foo.com/cgi-bin/
>   ProxyPassReverse  /test/ http://foo.com/cgi-bin/
>
>Thus trying http://wibble.org/test/abc?def+ghi+jki getting 
>passed via proxy
>to http://foo.com/cgi-bin/abc?def+ghi+jki
>get a browser error on failing on :
>
>The proxy server received an invalid response from an upstream server.
>The proxy server could not handle the request GET /test/abc
>Reason: Could not connect to remote machine: Connection timed out

I'm not sure that this is a Proxy problem... It looks like your CGI got stuck and never returned
anything. Start at the other end of the stream:

- on the foo.com server, does the CGi execute from the command line?
- does it produce a valid CGI header?
- does it work in a browser connected directly (not via proxy) to foo.com?
- when you hit it via the proxy, what do you see in the access and error log in foo.com?

Rgds,

Owen Boyle

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message