<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
hi all. <br>
<br>
with ivan's help i made some progress. but i am still wondering if
anyone can help me fully resolve my proxyhost. i believe it's an
apache/mac thing. i've gotten an url for georss.html to run in safari,
but not firefox. <br>
<br>
the error says: "uncaught exception: Access to restricted URI denied
(NS_ERROR_DOM_BAD_URI)" in XMLHttpRequest.js. <br>
the xhr requests says 0. <br>
<br>
here's a run down of what i did:
<br>
1) i saved proxy.cgi into /Library/webserver/CGI-Executables
<br>
2) then i did the chmod +x proxy.cgi
<br>
3) i was working apache through mamp, which i think was a problem. so
i uninstalled mamp and i enabled websharing in the sharing preferences
pane. <br>
4) then i did <a class="moz-txt-link-freetext"
href="http://localhost/cgi-bin/proxy.cgi">http://localhost/cgi-bin/proxy.cgi</a>
which brought me to a local openlayers site in both firefox and safari
(yay!!)
<br>
5) then i attempted to set the proxyhost variable. after a couple
different tries, i saw that setting it to: OpenLayers.ProxyHost = "";
works in safari, but not in firefox.
<br>
<br>
once figured out, i promise to write the greatest how to ever.<br>
<br>
thanks again, <br>
alyssa. <br>
<br>
Ivan Grcic wrote:
<blockquote
cite="mid:f30fafda0901231001y77090f7cq99c706f3ed2afa8a@mail.gmail.com"
type="cite">
<pre wrap="">hi, try
chmod +x proxy.cgi
cheers
On Fri, Jan 23, 2009 at 6:59 PM, alyssa wright <a class="moz-txt-link-rfc2396E" href="mailto:apw217@mit.edu"><apw217@mit.edu></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi all,
I know it's been asked before, but after hitting my head against many a
wall I humbly ask again:
I've been attempting to get the rss examples in general, and georss.html
example, in particular to work with an HTTP URL.
As instructed in the FAQ, I saved the proxy.cgi script from the svn
download in a cgi-bin folder within my local examples folder. Then I
set the proxyhost variable to OpenLayers.ProxyHost =
"/cgi-bin/proxy.cgi?url="; When I navigate to the script
(<a class="moz-txt-link-freetext" href="http://localhost:8888/openlayers/examples/cgi-bin/proxy.cgi">http://localhost:8888/openlayers/examples/cgi-bin/proxy.cgi</a>) the
resulting content is the text of the script and not the openlayers
site. (I do not know if this is a sign of a problem).
When I attempt to load the feed
(<a class="moz-txt-link-freetext" href="http://www.greenwich-church.net/GeoRSS.xml">http://www.greenwich-church.net/GeoRSS.xml</a>) in georss.html,
"GeoRss.xml" shows up as an overlay, but no data registers on the map.
When I load this same feed on the openlayers version
(<a class="moz-txt-link-freetext" href="http://www.openlayers.org/dev/examples/georss.html">http://www.openlayers.org/dev/examples/georss.html</a>) "Greenwich Church"
shows an an overlay along with corresponding data.
I have tried various combinations of where to save the proxy script
(e.g., in the examples folder with the georss file and the variable as
OpenLayers.ProxyHost = "";) and I have tried variations where the
AddHandler section of my httpd.conf knows to call python (as instructed
here <a class="moz-txt-link-freetext" href="http://gist.fas.harvard.edu/chgis/?p=14">http://gist.fas.harvard.edu/chgis/?p=14</a>).
Any help is greatly appreciated.
Best,
Alyssa.
PS. I am not that interested in greenwich churches. . . it was just an
easy test case.
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@openlayers.org">Users@openlayers.org</a>
<a class="moz-txt-link-freetext" href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a>
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
</body>
</html>