<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof"><font class="FluidPluginCopy" size="2"><span style="font-size:11pt" class="ContentPasted0">Jörg</span></font>,</span></div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof"><br>
</span></div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted2 ContentPasted3 ContentPasted4 ContentPasted5">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:
<span style="border-block:unset;border-inline:unset;border-start-start-radius:unset;border-start-end-radius:unset;border-end-start-radius:unset;border-end-end-radius:unset;overflow-inline:unset;overflow-block:unset;overscroll-behavior-inline:unset;overscroll-behavior-block:unset;margin-block:unset;margin-inline:unset;scroll-margin-block:unset;scroll-margin-inline:unset;padding-block:unset;padding-inline:unset;scroll-padding-block:unset;scroll-padding-inline:unset;inset-block:unset;inset-inline:unset;block-size:unset;min-block-size:unset;max-block-size:unset;inline-size:unset;min-inline-size:unset;max-inline-size:unset;contain-intrinsic-block-size:unset;contain-intrinsic-inline-size:unset;background:unset;background-blend-mode:unset;border:unset;border-radius:unset;box-decoration-break:unset;display:unset;float:unset;clear:unset;vertical-align:unset;overflow:unset;overflow-anchor:unset;transform:unset;rotate:unset;scale:unset;translate:unset;offset:unset;scroll-behavior:unset;scroll-snap-align:unset;scroll-snap-type:unset;scroll-snap-stop:unset;overscroll-behavior:unset;isolation:unset;break-after:unset;break-before:unset;break-inside:unset;resize:unset;perspective:unset;perspective-origin:unset;backface-visibility:unset;transform-box:unset;transform-style:unset;transform-origin:unset;contain:unset;appearance:unset;will-change:unset;shape-image-threshold:unset;shape-margin:unset;shape-outside:unset;touch-action:unset;scrollbar-gutter:unset;columns:unset;column-fill:unset;column-rule:unset;column-span:unset;content:unset;counter-increment:unset;counter-reset:unset;counter-set:unset;opacity:unset;box-shadow:unset;clip:rect(0px, 0px, 0px, 0px);filter:unset;backdrop-filter:unset;mix-blend-mode:unset;font:unset;font-synthesis:unset;visibility:unset;writing-mode:unset;text-orientation:unset;print-color-adjust:unset;image-rendering:unset;image-orientation:unset;dominant-baseline:unset;text-anchor:unset;color-interpolation:unset;color-interpolation-filters:unset;fill:unset;fill-opacity:unset;fill-rule:unset;shape-rendering:unset;stroke:unset;stroke-width:unset;stroke-linecap:unset;stroke-linejoin:unset;stroke-miterlimit:unset;stroke-opacity:unset;stroke-dasharray:unset;stroke-dashoffset:unset;clip-rule:unset;marker:unset;paint-order:unset;border-collapse:unset;empty-cells:unset;caption-side:unset;border-spacing:unset;color:unset;text-transform:unset;hyphens:unset;text-indent:unset;overflow-wrap:unset;word-break:unset;text-justify:unset;text-align-last:unset;text-align:unset;letter-spacing:unset;word-spacing:unset;text-shadow:unset;text-emphasis:unset;text-emphasis-position:unset;tab-size:unset;line-break:unset;ruby-align:unset;ruby-position:unset;text-combine-upright:unset;text-rendering:unset;text-underline-offset:unset;text-underline-position:unset;text-decoration-skip-ink:unset;hyphenate-character:unset;cursor:unset;pointer-events:unset;accent-color:unset;color-scheme:unset;scrollbar-color:unset;list-style:unset;quotes:unset;margin:unset;overflow-clip-margin:unset;scroll-margin:unset;outline:unset;outline-offset:unset;size:unset;padding:unset;scroll-padding:unset;top:0px;right:unset;bottom:unset;left:unset;z-index:unset;flex-flow:unset;place-content:unset;place-items:unset;flex:unset;place-self:unset;order:unset;width:unset;min-width:unset;max-width:unset;height:unset;min-height:unset;max-height:unset;box-sizing:unset;object-fit:unset;object-position:unset;grid-area:unset;grid:unset;gap:unset;aspect-ratio:unset;contain-intrinsic-size:unset;vector-effect:unset;stop-color:unset;stop-opacity:unset;flood-color:unset;flood-opacity:unset;lighting-color:unset;mask-type:unset;clip-path:unset;mask:unset;x:unset;y:unset;cx:unset;cy:unset;rx:unset;ry:unset;r:unset;d:unset;table-layout:unset;text-overflow:unset;text-decoration:unset;ime-mode:unset;scrollbar-width:unset;user-select:text;transition:unset;animation:unset" class="FluidPluginCopy ContentPasted1">
<a href="https://pastecode.io/s/ze13uqmz" id="LPlnk573525">https://pastecode.io/s/ze13uqmz</a></span> but later after trying to connect to WMS via
<a href="https://geo.cloudferro.com/ogc/wms/Sentinel2Ukraine" id="LPlnk754093">https://geo.cloudferro.com/ogc/wms/Sentinel2Ukraine</a> or
<a href="https://geo.cloudferro.com/ogc/wms/usr/local/bin/mapserv/Sentinel2Ukraine" id="LPlnk112787">
https://geo.cloudferro.com/ogc/wms/usr/local/bin/mapserv/Sentinel2Ukraine</a> I still get the "msCGILoadMap(): Web application error. CGI variable &quot;map&quot; is not set.". Should I reload apache2 after editing /et/mapserver.conf or do something else to
 enable the edits?</span></div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted2 ContentPasted3 ContentPasted4 ContentPasted5"><br>
</span></div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted2 ContentPasted3 ContentPasted4 ContentPasted5">Best,</span></div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted2 ContentPasted3 ContentPasted4 ContentPasted5">Marcin<br>
</span></div>
<div class="elementToProof">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<table style="margin-top:30px;margin-bottom:30px;width:95%" id="tableSelected0">
<tbody>
<tr height="45">
<td><br>
</td>
</tr>
<tr>
<td><br>
</td>
</tr>
<tr>
<td><br>
</td>
</tr>
<tr>
<td><br>
</td>
</tr>
</tbody>
</table>
<table id="pbpsiglinktable">
<tbody>
<tr>
<td><a href="https://outlook.office.com/bookwithme/user/6347c7def05a478ba013ae948648789d@cloudferro.com?anonymous&ep=signature"><img data-outlook-trace="F:1|T:1" src="cid:97709ed4-1ada-4da2-b0c2-6726b98c518c"></a></td>
<td></td>
<td><a href="https://outlook.office.com/bookwithme/user/6347c7def05a478ba013ae948648789d@cloudferro.com?anonymous&ep=signature" style="text-decoration: none; color: #0078d4;">Book time to meet with me</a></td>
<td>
<table>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> MapServer-users <mapserver-users-bounces@lists.osgeo.org> on behalf of Jörg Thomsen (WhereGroup) <joerg.thomsen@wheregroup.com><br>
<b>Sent:</b> Tuesday, January 10, 2023 4:18 PM<br>
<b>To:</b> mapserver-users@lists.osgeo.org <mapserver-users@lists.osgeo.org><br>
<b>Subject:</b> Re: [MapServer-users] apache2 aliases: msCGILoadMap(): Web application error. CGI variable &quot; map&quot;
</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Hello Marcin,<br>
<br>
I'm n ot sure, but for fast-cgi I think it should be<br>
<br>
  FcgidInitialEnv MS_MAPFILE "/etc/mapserver/Sentinel2Ukraine.map"<br>
<br>
Which MS Version do you use? With MapServer 8 you can easy use the <br>
mapserver config-file for defining the default mapfile and mapfile aliases.<br>
<a href="https://mapserver.org/mapfile/config.html">https://mapserver.org/mapfile/config.html</a><br>
<br>
Jörg<br>
<br>
Am 10.01.23 um 15:36 schrieb Marcin Niemyjski via MapServer-users:<br>
> <br>
> Hello,<br>
> <br>
> I'm trying to create Apache aliases by editing /etc/apache2/apache2.conf <br>
> as below:<br>
> <br>
> Alias /Sentinel2Ukraine "/usr/local/bin/mapserv"<br>
> <Location /Sentinel2Ukraine ><br>
>          SetHandler fcgi-script (I have also tried with cgi-script)<br>
>          Options ExecCGI<br>
>          SetEnv MS_MAPFILE "/etc/mapserver/Sentinel2Ukraine.map"<br>
>          Require all granted<br>
> </Location><br>
> <br>
> Then reload apache2. Following logs are recived:<br>
> <br>
> msCGILoadMap(): Web application error. CGI variable &quot;map&quot; is <br>
> not set<br>
> and<br>
> <a href="https://pastecode.io/s/gkw8n24k">https://pastecode.io/s/gkw8n24k</a> <<a href="https://pastecode.io/s/gkw8n24k">https://pastecode.io/s/gkw8n24k</a>><br>
> <br>
> My mapfile:<br>
> <a href="https://pastecode.io/s/z75n6qo7">https://pastecode.io/s/z75n6qo7</a> <<a href="https://pastecode.io/s/z75n6qo7">https://pastecode.io/s/z75n6qo7</a>><br>
> <br>
> I would be grateful for any advice,<br>
> Marcin<br>
> <br>
> <br>
> <br>
> <br>
> <<a href="https://outlook.office.com/bookwithme/user/6347c7def05a478ba013ae948648789d@cloudferro.com?anonymous&ep=signature">https://outlook.office.com/bookwithme/user/6347c7def05a478ba013ae948648789d@cloudferro.com?anonymous&ep=signature</a>>           
 Book time to meet with me <<a href="https://outlook.office.com/bookwithme/user/6347c7def05a478ba013ae948648789d@cloudferro.com?anonymous&ep=signature">https://outlook.office.com/bookwithme/user/6347c7def05a478ba013ae948648789d@cloudferro.com?anonymous&ep=signature</a>>   
<br>
> <br>
> <br>
> _______________________________________________<br>
> MapServer-users mailing list<br>
> MapServer-users@lists.osgeo.org<br>
> <a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br>
-- <br>
Viele Grüße,<br>
Jörg Thomsen<br>
<br>
---------------------------------------------<br>
Aufwind durch Wissen!<br>
Web-Seminare und Online-Schulungen<br>
bei der <a href="http://www.foss-academy.com">www.foss-academy.com</a><br>
---------------------------------------------<br>
<br>
Jörg Thomsen<br>
WhereGroup GmbH<br>
Bundesallee 23<br>
10717 Berlin<br>
Germany<br>
<br>
Tel: +49 (0)30 / 5130 278 74<br>
Fax: +49 (0)30 / 5130 278 11    <br>
<br>
joerg.thomsen@wheregroup.com<br>
<a href="http://www.wheregroup.com">www.wheregroup.com</a><br>
<br>
Geschäftsführer:<br>
Olaf Knopp, Peter Stamm<br>
Amtsgericht Bonn, HRB 9885<br>
<br>
-------------------------------<br>
Folgen Sie der WhereGroup auf twitter: <a href="http://twitter.com/WhereGroup_com">
http://twitter.com/WhereGroup_com</a><br>
<br>
_______________________________________________<br>
MapServer-users mailing list<br>
MapServer-users@lists.osgeo.org<br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</div>
</span></font></div>
</body>
</html>