[MapServer-users] apache2 aliases: msCGILoadMap(): Web application error. CGI variable " map"
Marcin Niemyjski
mniemyjski at cloudferro.com
Wed Jan 11 00:48:39 PST 2023
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/6347c7def05a478ba013ae948648789d@cloudferro.com?anonymous&ep=signature> Book time to meet with me<https://outlook.office.com/bookwithme/user/6347c7def05a478ba013ae948648789d@cloudferro.com?anonymous&ep=signature>
________________________________
From: MapServer-users <mapserver-users-bounces at lists.osgeo.org> on behalf of Jörg Thomsen (WhereGroup) <joerg.thomsen at wheregroup.com>
Sent: Tuesday, January 10, 2023 4:18 PM
To: mapserver-users at lists.osgeo.org <mapserver-users at 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/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<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.thomsen at 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 at lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20230111/ba560290/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-0mrmbws4.png
Type: image/png
Size: 528 bytes
Desc: Outlook-0mrmbws4.png
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20230111/ba560290/attachment.png>
More information about the MapServer-users
mailing list