[MapServer-users] apache2 aliases: msCGILoadMap(): Web application error. CGI variable " map"

Jörg Thomsen (WhereGroup) joerg.thomsen at wheregroup.com
Tue Jan 10 07:18:32 PST 2023


Hello Marcin,

I'm n ot sure, but for fast-cgi I think it should be

  FcgidInitialEnv MS_MAPFILE "/etc/mapserver/Sentinel2Ukraine.map"

Which MS Version do you use? With MapServer 8 you can easy use the 
mapserver config-file for defining the default mapfile and mapfile aliases.
https://mapserver.org/mapfile/config.html

Jörg

Am 10.01.23 um 15:36 schrieb Marcin Niemyjski via MapServer-users:
> 
> Hello,
> 
> I'm trying to create Apache aliases by editing /etc/apache2/apache2.conf 
> as below:
> 
> Alias /Sentinel2Ukraine "/usr/local/bin/mapserv"
> <Location /Sentinel2Ukraine >
>          SetHandler fcgi-script (I have also tried with cgi-script)
>          Options ExecCGI
>          SetEnv MS_MAPFILE "/etc/mapserver/Sentinel2Ukraine.map"
>          Require all granted
> </Location>
> 
> Then reload apache2. Following logs are recived:
> 
> msCGILoadMap(): Web application error. CGI variable "map" is 
> not set
> and
> https://pastecode.io/s/gkw8n24k <https://pastecode.io/s/gkw8n24k>
> 
> My mapfile:
> https://pastecode.io/s/z75n6qo7 <https://pastecode.io/s/z75n6qo7>
> 
> I would be grateful for any advice,
> Marcin
> 
> 
> 
> 
> <https://outlook.office.com/bookwithme/user/6347c7def05a478ba013ae948648789d@cloudferro.com?anonymous&ep=signature> 		Book time to meet with me <https://outlook.office.com/bookwithme/user/6347c7def05a478ba013ae948648789d@cloudferro.com?anonymous&ep=signature> 	
> 
> 
> _______________________________________________
> MapServer-users mailing list
> MapServer-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users

-- 
Viele Grüße,
Jörg Thomsen

---------------------------------------------
Aufwind durch Wissen!
Web-Seminare und Online-Schulungen
bei der www.foss-academy.com
---------------------------------------------

Jörg Thomsen
WhereGroup GmbH
Bundesallee 23
10717 Berlin
Germany

Tel: +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