[mapserver-users] Copy mapserv.exe problem

Jörg Thomsen (WhereGroup) joerg.thomsen at wheregroup.com
Thu Oct 31 01:39:30 PDT 2019


hi,

Am 30.10.19 um 20:52 schrieb Robert Sanson:
> Hi Stefan
> 
> Is your mapserver on Windows? Once you copy mapserv.exe change its name to the name of your mapfile and then edit httpd.conf and set up Apache redirects for each one
> 
> Eg. Suppose you had a mapfile map1.map and you copied mapserv.exe to map1.exe, then you could put the following line into httpd.conf:
> 
> SetEnvIf Request_URI "/cgi-bin/map1?" MS_MAPFILE=/path_to/map1.map

you don't need copies of the binary, just create apache rewrite rules like
RewriteRule ^/wms1?$ /cgi-bin/mapserv?map=/path_to/map1.map
RewriteRule ^/wms2?$ /cgi-bin/mapserv?map=/path_to/map2.map
RewriteRule ^/wms3?$ /cgi-bin/mapserv?map=/path_to/map3.map

now you can request your wms with

http://../cgi-bin/wms1?SERVICE=WMS&...

see
https://mapserver.org/ogc/wms_server.html#apache-rewrite-rules-using-apache-mod-rewrite

Jörg

> 
> Regards
> Robert
> 
> -----Original Message-----
> From: mapserver-users <mapserver-users-bounces at lists.osgeo.org> On Behalf Of StefanWebViewer
> Sent: Thursday, 31 October 2019 4:01 a.m.
> To: mapserver-users at lists.osgeo.org
> Subject: [mapserver-users] Copy mapserv.exe problem
> 
> Hey!
> I had already formulated an entry recently in which I asked for the error
> message "msCGILoadMap (): Web application error. CGI variable" map "is not
> set." asked.
> Now I think I have found a more accurate diagnosis. For our project we need
> several mapserv.exe, because we present different maps (Mapfiles) to
> different users. Every time I come up with a new copy of the mapserv.exe
> this error message follows. Does anyone know this problem? Does something
> have to be considered when copying this file? Thank you very much!
> 
> 
> 
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
> 


Viele Grüße,
Jörg Thomsen

-- 

***************************
Where2B Konferenz 2019
12. Dezember 2019 in Bonn
where2b-conference.com
***************************

Jörg Thomsen
WhereGroup GmbH
Gillweg 3
14193 Berlin
Germany

Fon: +49 (0)30 / 5130 278 74
Fax: +49 (0)30 / 5130 278 11	

joerg.thomsen at wheregroup.com
www.wheregroup.com

Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885

-------------------------------
Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com


More information about the mapserver-users mailing list