[mapserver-users] Problems with mapserver wrapper script

Jeff McKenna jmckenna at gatewaygeomatics.com
Thu Jul 1 09:31:21 EDT 2010


David,

I just tested this successfully with MS4W v3.0 (MapServer 5.6.3).  The 
line I added to Apache's httpd.conf was:

   SetEnvIf Request_URI "/cgi-bin/mywms.exe" 
MS_MAPFILE=/ms4w/apps/benchmarking/mapserver/bcn.map

and then restarted Apache.

(I copied this line from 
http://www.mapserver.org/ogc/wms_server.html#more-about-the-online-resource-url)

-jeff

-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/




David Alda Fernandez de Lezea wrote:
> Hi list,
> 
> I'm facing a small problem. I've copied mapserv.exe to a new file called wms_dgis.exe, I added to httpd.conf the following line 
> 
> SetEnvIf Request_URI ="/cgi-bin/wms_dgis.exe" MS_MAPFILE=/ms4w/Apache/htdocs/MFD/wms_dgis.map
> 
> I also changed the onlineresource value of the mapfile to
> 
> "wms_onlineresource"  	"http://192.168.1.65/cgi-bin/wms_dgis.exe?"
> 
> When I type in the web browser the url http://192.168.1.65/cgi-bin/wms_dgis.exe?, I get:
> 
> No query information to decode. QUERY_STRING is set, but empty. 
> 
> So I think I'm on the right way, but when I make a getCapabilities request like:
> 
> http://192.168.1.65/cgi-bin/wms_dgis.exe?SERVICE=WMS&REQUEST=GetCapabilities
> 
> I get:
> 
> loadMap(): Web application error. CGI variable "map" is not set.
> 
> I've looked into Apache's access.log but I don't see anything odd.
> 
> MS4W package
> Mapserver 5.6.1
> Win XP
> 
> Am I doing something wrong??
>  
>  
> Un saludo,
>  
> ··················································································
> 
> David Alda Fernández de Lezea
> Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
>



More information about the mapserver-users mailing list