[OpenLayers-Users] proxy.cgi with FastCGI (Apache)

Òscar Vidal Calbet oscarblo at gmail.com
Sun Mar 13 11:13:41 EDT 2011


Hey everyone,

I'm using OpenLayers with proxy.cgi (/usr/lib/cgi-bin/proxy.cgi) to
access data in http://localhost:8080 from Apache2. All was working
fine until I installed FastCGI module for Apache2 (Im using Mapserver
too).

So now Im getting the following error, from the Apache log in
/var/log/apache2/error.log

[Sun Mar 13 14:20:16 2011] [warn] FastCGI: (dynamic) server
"/usr/lib/cgi-bin/proxy.cgi" (pid 6853) terminated by calling exit
with status '1'
[Sun Mar 13 14:20:21 2011] [warn] FastCGI: (dynamic) server
"/usr/lib/cgi-bin/proxy.cgi" restarted (pid 6854)
Traceback (most recent call last):
  File "/usr/lib/cgi-bin/proxy.cgi", line 26, in <module>
    method = os.environ["REQUEST_METHOD"]
  File "/usr/lib/python2.6/UserDict.py", line 22, in __getitem__
    raise KeyError(key)
KeyError: 'REQUEST_METHOD'
[Sun Mar 13 14:20:21 2011] [warn] FastCGI: (dynamic) server
"/usr/lib/cgi-bin/proxy.cgi" (pid 6854) terminated by calling exit
with status '1'
[Sun Mar 13 14:20:21 2011] [warn] FastCGI: (dynamic) server
"/usr/lib/cgi-bin/proxy.cgi" has failed to remain running for 30
seconds given 3 attempts, its restart interval has been backed off to
600 seconds

And in the request (GET proxy.cgi?url=...):

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head> <title>500 Internal Server Error</title> </head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or misconfiguration and
was unable to complete your request.</p>
<p>Please contact the server administrator, webmaster at localhost and
inform them of the time the error occurred, and anything you might
have done that may have caused the error.</p>
<p>More information about this error may be available in the server
error log.</p>
<hr>
<address>Apache/2.2.16 (Ubuntu) Server at localhost Port 80</address>
</body></html>

I can give more useful information, jut tell me what, :)


My question:

I need edit the proxy.cgi file to adapt it to FastCGI? or maybe its
just that proxy.cgi doesn't work with FastCGI?
If someone had used it (proxy.cgi + FastCGI) before I will be
thankfully to know how.


Thanks!
Oscar

PS: sorry my poor english


More information about the Users mailing list