<div>Alex,<br>many thanks for pointing me at the right direction! <br>But unfortunately I&#39;m stuck again as I&#39;m a complete beginner concerning this &quot;proxy-stuff&quot;.</div>
<div> </div>
<div>I saved the proxy.cgi-file into my .../apache/cgi-bin folder and added &#39;<a href="http://localhost" target="_blank">http://localhost</a>&#39; to the allowedHosts-array. Also I added the following line to my html-file:</div>

<blockquote class="gmail_quote" style="padding-left: 1ex; margin: 0px 0px 0px 0.8ex; border-left: 1px solid rgb(204, 204, 204);"><pre class="wiki"> OpenLayers.ProxyHost = &quot;/cgi-bin/proxy.cgi?url=&quot;;<br></pre></blockquote>
<div>But if I go to <a href="http://localhost/cgi-bin/proxy.cgi">http://localhost/cgi-bin/proxy.cgi</a> I&#39;m getting the following error message:<br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">
<h1><font size="2">Internal Server Error</font></h1><p><font size="2">The server encountered an internal error or
misconfiguration and was unable to complete
your request.</font></p><p><font size="2">Please contact the server administrator,
 <a href="mailto:andreia.farrer@gmail.com">andreia.farrer@gmail.com</a> and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</font></p><p><font size="2">More information about this error may be available
in the server error log.</font></p></blockquote><div> </div>


What have I done wrong?<br><br>Btw, the server log looks like this (which looks cryptic to me):<br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">
<font size="1">[Tue Aug 10 14:11:48 2010] [error] [client 127.0.0.1] C:/##BTH10##/5. Software/Apache2.2/cgi-bin/proxy.cgi is not executable; ensure interpreted scripts have &quot;#!&quot; first line</font><br><font size="1">[Tue Aug 10 14:11:48 2010] [error] [client 127.0.0.1] (9)Bad file descriptor: don&#39;t know how to spawn child process: C:/##BTH10##/5. Software/Apache2.2/cgi-bin/proxy.cgi</font><br>
<font size="1">[Tue Aug 10 14:15:15 2010] [error] [client 127.0.0.1] File does not exist: C:/##BTH10##/5. Software/Apache2.2/htdocs/announce</font><br><font size="1">[Tue Aug 10 14:15:16 2010] [error] [client 127.0.0.1] File does not exist: C:/##BTH10##/5. Software/Apache2.2/htdocs/announce</font><br>
</blockquote><br>Do you know how to fix this?<br>Cheers<br>Andreia<br><br><br> </div>
<div class="gmail_quote">2010/8/10 Adam Ratcliffe <span dir="ltr">&lt;<a href="mailto:adam@prema.co.nz" target="_blank">adam@prema.co.nz</a>&gt;</span><br>
<blockquote class="gmail_quote" style="padding-left: 1ex; margin: 0px 0px 0px 0.8ex; border-left: 1px solid rgb(204, 204, 204);">
<div style="word-wrap: break-word;">You&#39;re probably not proxying your XHR requests so the WFS requests are being blocked by the browser&#39;s security model. 
<div><br></div>
<div>You can find out how to configure a proxy here: <a href="http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#WhydoIneedaProxyHost" target="_blank">http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#WhydoIneedaProxyHost</a></div>


<div><br></div>
<div>Cheers</div>
<div>Adam<br>
<div><br>
<div>
<div>
<div></div>
<div>
<div>On 10/08/2010, at 10:37 PM, andreia farrér wrote:</div><br></div></div>
<blockquote type="cite">
<div>
<div></div>
<div>Hello there,<br>I&#39;m trying to implement a Web Feature Service in my Map and somehow it seems that I&#39;m not able to handle such an &quot;easy&quot; task.<br>A few infos first: <br>- PosgreSQL/PostGIS installed locally; 3 Tables (ogm_points, ogm_lines, ogm_polygons)<br>

- Geoserver installed locally and WFS-function turned on<br>- html-page with OL-Code on Apache-Server<br><br>Problem: The features don&#39;t show in my mappanel. Although I&#39;m able to read the features with e.g Gaia without any problems (and QGIS as a WMS), It seems that i missed something. I tried to adapt some examples, but not a single one worked.<br>

<br>Code-snippet for the WFS:<br><br>
<blockquote class="gmail_quote" style="padding-left: 1ex; margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204);">var ogm_polygons = new OpenLayers.Layer.Vector(&quot;polygons&quot;, {<br>                strategies: [new OpenLayers.Strategy.Fixed(), saveStrategy],<br>

                protocol: new OpenLayers.Protocol.WFS({<br>                    url: &quot;<a href="http://localhost:8090/geoserver/wfs" target="_blank">http://localhost:8090/geoserver/wfs</a>&quot;,<br>                    version: &quot;1.1.0&quot;,<br>

                    featureType: &quot;ogm_polygons&quot;, <br>                    featureNS: &quot;<a href="http://opengeomap.org/" target="_blank">http://opengeomap.org</a>&quot;,<br>                    geometryName: &quot;the_geom&quot;,<br>

                    srsName: &quot;EPSG:21781&quot; //Swiss LV03<br>                })<br>            });<br>map.addLayers([ogm_polygons]);<br clear="all"></blockquote><br>I&#39;d be grateful for any advice on what I&#39;m doing wrong; thanks in advance!<br>

Greetings<br>A. Farrér<br><br>-- <br>Andreia Farrér, Birmensdorferstr. 260, 8055 Zürich; phone: +41 78 825 44 93<br></div></div>
<div>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@openlayers.org" target="_blank">Users@openlayers.org</a><br><a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>

</div></blockquote></div><br></div></div></div></blockquote></div><br><br clear="all"><br>-- <br>Andreia Farrér, Birmensdorferstr. 260, 8055 Zürich; phone: +41 78 825 44 93<br>