Hello,
finally i got the proxy.running. The problem came up due to the
application running on glassfish (port 8080) and the cgi script being
run by Apache (port 80)
So I had to add "myApache_URL/" to the path of OpenLayers.ProxyHost
However, the request now is forwarded to the external MapServer, the
response (format = html) seems to be O.K. (status = 200) but the
GeoExt.popup ist still empty.
Definition of WMSGetFeatureInfo is:
var featureInfo = new OpenLayers.Control.WMSGetFeatureInfo(
{
vendorParams: {map: 'PathToMap.map'}
}
);
featureInfo.events.on({
getfeatureinfo: function(e) {
new GeoExt.Popup({
title: "Info",
width: 200,
height: 150,
autoScroll: true,
maximizable: true,
map: map,
lonlat: map.getLonLatFromPixel(e.xy),
html: e.text
}).show();
}
});
Is there still anything missing, that I forgot to define or defined
the wrong way?
cheers,
Sven
Quoting "Marc Jansen" <[email protected]>:
> Hi Sven,
>
> are you using another proxy to access URLs in your network? I found this
> Mailinglist discussion
> http://mail.python.org/pipermail/python-list/2008-December/569855.html
>
> If that is still not doing the trick, I',m afraid I am running out of
> ideas soon.
>
> Regards,
> Marc
>
>
> On 27.08.2010 12:40, Sven Burbeck wrote:
>> Hi,
>> the firewall is off.
>> Entering http://example.com/cgi-bin/proxy.cgi
>> manually in the browser brings up the following message:
>> Not Found
>> The requested URL /cgi-bin/proxy.cgi was not found on this server.
>> Apache/2.2.3 (CentOS) Server at example.com Port 80
>>
>> entering http://localhost/cgi-bin/proxy.cgi
>> brings up:
>> waiting for localhost...
>> <urlopen error [Errno 110] Connection timed out>
>>
>> cheers,
>> Sven
>>
>>
>> Quoting "Marc Jansen"<[email protected]>:
>>
>>
>>> Hi Sven,
>>>
>>> Is there some firewall active on the server?
>>>
>>> What do you see if you enter http://example.com/cgi-bin/proxy.cgi in
>>> your browser manually? When called without parameters, it'll try to
>>> access www.openlayers.org.
>>>
>>> You should see the OpenLayers Homepage served by your proxy (You'll need
>>> to allow the host www.openlayers.org though)
>>>
>>> Regards,
>>> Marc
>>>
>>>
>>> On 27.08.2010 11:04, Sven Burbeck wrote:
>>>
>>>> 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"<[email protected]>:
>>>>
>>>>
>>>>
>>>>> 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
>>>>>> [email protected]
>>>>>> http://openlayers.org/mailman/listinfo/users
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> [email protected]
>>>> http://openlayers.org/mailman/listinfo/users
>>>>
>>>>
>>>>
>>> _______________________________________________
>>> Users mailing list
>>> [email protected]
>>> http://openlayers.org/mailman/listinfo/users
>>>
>>>
>>>
>>
>> _______________________________________________
>> Users mailing list
>> [email protected]
>> http://openlayers.org/mailman/listinfo/users
>>
>>
>
>
> --
>
> .................................................................
> Karten im (Inter|Intra)net?
>
> OpenLayers - Webentwicklung mit dynamischen Karten und Geodaten
> von M. Jansen und T. Adams, OpenSourcePress, München.
>
> ISBN: 978-3-937514-92-5
> URL: http://openlayers-buch.de
> .................................................................
>
>
> Dipl.-Geogr. Marc Jansen
> - Anwendungsentwickler -
>
> terrestris GmbH& Co. KG
> Irmintrudisstraße 17
> 53111 Bonn
>
> Tel: ++49 (0)228 / 96 28 99 -53
> Fax: ++49 (0)228 / 96 28 99 -57
>
> Email: [email protected]
> Web: http://www.terrestris.de
>
> Amtsgericht Bonn, HRA 6835
> Komplementärin: terrestris Verwaltungsgesellschaft mbH
> vertreten durch: Hinrich Paulsen, Till Adams
>
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://openlayers.org/mailman/listinfo/users
>
>
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users