[OpenLayers-Users] proxy.cgi fails
Sven Burbeck
sburbeck at bfs.de
Fri Aug 27 05:04:52 EDT 2010
Hi Marc,
1.) Browser indicates: "waiting for localhost" and finally:
"<urlopen error [Errno 110] Connection timed out>"
2.) mytest.cgi indeed wasn't Python but Perl. However, I changed it to Python
Content:
#!/usr/bin/python
print "Content-type: text/html\r\n\r\n";
print "Python CGI works";
and it works!
3.) changed first line in proxy.cgi to #!/usr/bin/python
but to no avail. The problem remains.
Any idea?
Sven
Quoting "Marc Jansen" <jansen at terrestris.de>:
> Hi Sven,
>
> Just some thoughts/questions:
>
> * What is the exact server message?
> * Is your test.cgi a python cgi?
> * Can proxy.cgi find the pythoin executable?
> * On a terminal on that machine issue
> which python
>
> This should give you the path to the python executable
> (/path/to/python). Replace the first line in the proxy.cgi script
> #!/usr/bin/env python
>
> to the output of 'which'
> #!/path/to/python
>
> * Is the script executable (check it with ls -la, maybe add it with
> chmod +x proxy.cgi)
>
>
> Regards,
> Marc
>
>
>
>
>
> On 27.08.2010 09:36, Sven Burbeck wrote:
>> Hello,
>> sorry for asking stupid newbie questions but I fail to get the
>> proxi.cgi working.
>> I followed the FAQ description:
>> http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#ProxyHost
>>
>> I've installed Apache 2.2.13 on SUSE11.2 via rpm.
>> Apparently the default cgi-bin is under /srv/www/cgi-bin
>> I put a test.cgi there and it works when calling it:
>> http://localhost/cgi-bin/test.cgi
>>
>> However, trying the same with proxy.cgi fails.
>> Is there anything else I have to consider?
>>
>> cheers,
>> Sven
>>
>> _______________________________________________
>> Users mailing list
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>
>>
>
>
More information about the Users
mailing list