Jörg, config-file sounds like a greate idea - thank you. In docker image (camptocamp/mapserver:latest - Mapserver 8) which I use config-fie is located at /etc/mapserver.conf. I've edited it this way: https://pastecode.io/s/ze13uqmz but later after trying to connect to WMS via https://geo.cloudferro.com/ogc/wms/Sentinel2Ukraine or https://geo.cloudferro.com/ogc/wms/usr/local/bin/mapserv/Sentinel2Ukraine I still get the "msCGILoadMap(): Web application error. CGI variable "map" is not set.". Should I reload apache2 after editing /et/mapserver.conf or do something else to enable the edits?
Best, Marcin [cid:97709ed4-1ada-4da2-b0c2-6726b98c518c]<https://outlook.office.com/bookwithme/user/6347c7def05a478ba013ae9486487...@cloudferro.com?anonymous&ep=signature> Book time to meet with me<https://outlook.office.com/bookwithme/user/6347c7def05a478ba013ae9486487...@cloudferro.com?anonymous&ep=signature> ________________________________ From: MapServer-users <mapserver-users-boun...@lists.osgeo.org> on behalf of Jörg Thomsen (WhereGroup) <joerg.thom...@wheregroup.com> Sent: Tuesday, January 10, 2023 4:18 PM To: mapserver-users@lists.osgeo.org <mapserver-users@lists.osgeo.org> Subject: Re: [MapServer-users] apache2 aliases: msCGILoadMap(): Web application error. CGI variable " map" 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/6347c7def05a478ba013ae9486487...@cloudferro.com?anonymous&ep=signature> > Book time to meet with me > <https://outlook.office.com/bookwithme/user/6347c7def05a478ba013ae9486487...@cloudferro.com?anonymous&ep=signature> > > > _______________________________________________ > MapServer-users mailing list > MapServer-users@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<http://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.thom...@wheregroup.com www.wheregroup.com<http://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 _______________________________________________ MapServer-users mailing list MapServer-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________ MapServer-users mailing list MapServer-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users