The access of the service is controled by the referer the browser sends. Only if you call the service from their page, the access is allowed. It's an unusual and also unsave way to protect a service. Arnd _____
Von: [email protected] [mailto:[email protected]] Im Auftrag von Thomas Gratier Gesendet: Sonntag, 23. Januar 2011 01:15 An: Eric Jarvies Cc: [email protected] Betreff: Re: [mapserver-users] Connecting to remote MapServer WMS/WMF layersusing PHP/OpenLayers Hello, Look with firebug the tiles url when hovering. There have wrong url Not sure it will solve everything but server = "http://" + location.host + "/"; must be something like server = "http://www.catastroloscabos.gob.mx/" and because of this change all case like mlayer = new OpenLayers.Layer.MapServer("Manzanas", server + "www.catastroloscabos.gob.mx/cgi-bin/mapserv.fcgi?", { map: '/home/juribe/webcatastro/catastro.map', layers: 'm', map_imagetype: 'png'}, {singleTile: true, isBaseLayer: false}); map.addLayer(mlayer); will look mlayer = new OpenLayers.Layer.MapServer("Manzanas", server + "cgi-bin/mapserv.fcgi", { map: '/home/juribe/webcatastro/catastro.map', layers: 'm', map_imagetype: 'png'}, {singleTile: true, isBaseLayer: false}); map.addLayer(mlayer); If you have others issues, the best is to post now to the users-openlayers list http://lists.osgeo.org/mailman/listinfo/openlayers-users because your questions for the moment seems to be more related to client side and not to mapserver. Regards ThomasG GIS specialist
_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
