[OpenLayers-Users] GeoServer Proxy Extension OpenLayers

justLearning neomim at gmail.com
Tue Jan 5 21:51:56 EST 2010




Hi, 

I have downloaded the openLayers examples, and run them for example via,
http://localhost:8080/geoserver/OpenLayers-2.8/examples/getfeatureinfo-control.html   
... the page, openlayers, the data... it all works, but when I go to
identify a feature, the proxy.cgi script is spit back to me inside the
webpage.  Is this a python problem, or something mis-configured in geoserver
or ???

Thank You!!!  
 




Roald de Wit-2 wrote:
> 
> Hi stash,
> 
> I could be mistaken, but the GS ProxyExtension is not going to help you 
> if you don't serve your OL web app from the same domain (localhost:8080 
> in your case, IIRC). Can you give a bit more information on what your 
> setup looks like? Do you use Apache for example or another web server? 
> Does GS run by itself or in Tomcat for example?
> 
> Have you ever tried downloading an OL 2.8 zip file, extracting it 
> somewhere in your document root in Apache (for example) and run the OL 
> examples, WFS ones in particular? Because if those work, the proxy.cgi 
> in the examples dir works. You can then add 'localhost:8080' to 
> allowedHosts (in proxy.cgi) and try your app from that directory. Once 
> that works, you can move your app somewhere else and put proxy.cgi in a 
> better place and get it to work.
> 
> Regards, Roald
> 
> stash wrote:
>> Hello,
>>
>> I want to show some data with a wfs in openlayers. I already know, that i
>> have to configure a proxy that I can do this. With geoserver you have the
>> opportunity to install a plugin called ProxyExtension, to do exactly
>> this.
>>
>> http://geoserver.org/display/GEOS/GeoServer+Proxy+Extension
>>
>> I installed the plugin and the example with the redirect to google works
>> (http://[your_geoserver_domain]/geoserver/rest/proxy?url=http://www.google.com)
>> --> the proxy is installed correctly.
>>
>> But now there are the next problems.
>>
>> 1. What for a hostname do i have to configure (Do i have to enter the ip
>> of
>> my pc, or the ip of the geoserver pc, ...?)
>>
>> 2. Do I have to set up a Openlayers.proxyhost in my program. How would
>> this
>> look like in my case?
>>
>> I hope someone can help me with this problem. I already tried so many
>> different things, but nothing worked. (Either I get no response text in
>> firebug or I get a bad request)
>>
>> Thanks for your answers.
>>
>> Regards
>> stash
>>   
> 
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 
> 

-- 
View this message in context: http://n2.nabble.com/GeoServer-Proxy-Extension-OpenLayers-tp3998936p4258923.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list