<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello,<div>I am new to OpenLayers. &nbsp;I have made a Feature Set &nbsp;in GeoServer and when I click on Demo and show my map it downloads a KMZ file. I am not sure if this is correct but I can view it in Google Earth just fine.&nbsp;</div><div><br></div><div>I am trying to serve a KML file from GeoServer but in FireBug I see:&nbsp;</div><div><b>Access to restricted URI denied" code: "1012</b></div><div><br></div><div>How do I configure OpenLayers prox.cgi to make things work?</div><div><br></div><div>This is the OpenLayers code:</div><div><br></div><div><div>map.addLayer(new OpenLayers.Layer.GML("KML", "<a href="http://naturkart.no:8080/geoserver/wms/kml?layers=kulturminner_ns:gravminne">http://naturkart.no:8080/geoserver/wms/kml?layers=kulturminner_ns:gravminne</a>",&nbsp;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;format: OpenLayers.Format.KML,&nbsp;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;formatOptions: {</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;extractStyles: true,&nbsp;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;extractAttributes: true</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }));</div><div><br></div><div>Thanks for any advice!</div><div><br></div><div>/asle</div></div></body></html>