<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<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);">Steve,</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);"><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="ContentPasted0">after trying to connect to WMS using
<a href="https://geo.cloudferro.com/ogc/wms/Sentinel2Ukraine" id="LPlnk271999">https://geo.cloudferro.com/ogc/wms/Sentinel2Ukraine</a> I recive:</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="ContentPasted0"><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="ContentPasted0 ContentPasted1">Instead of the capabilities string that was expected,
 the following response has been received:
<div class="FluidPluginCopy"><br class="ContentPasted1">
</div>
<div class="FluidPluginCopy ContentPasted1"><HTML></div>
<div class="FluidPluginCopy ContentPasted1"><HEAD><TITLE>MapServer Message</TITLE></HEAD></div>
<div class="FluidPluginCopy ContentPasted1"><!-- MapServer version 8.0.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
 SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=OGCAPI_SERVER SUPPORTS=FASTCGI SUPPORTS=GEOS SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE INPUT=FLATGEOBUF --></div>
<div class="FluidPluginCopy ContentPasted1"><BODY BGCOLOR="#FFFFFF"></div>
<div class="FluidPluginCopy ContentPasted1">msCGILoadMap(): Web application error. CGI variable &quot;map&quot; is not set.</div>
</BODY></HTML><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 style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
any idea on this one?</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Marcin<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:cfca5ef3-fccc-4e97-ad09-4a6b9b820144"></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;" data-loopstyle="link">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> Lime, Steve D (MNIT) <steve.lime@state.mn.us><br>
<b>Sent:</b> Friday, January 6, 2023 4:50 PM<br>
<b>To:</b> Marcin Niemyjski <mniemyjski@cloudferro.com>; Marcin Niemyjski via MapServer-users <mapserver-users@lists.osgeo.org><br>
<b>Subject:</b> RE: How to create aliases on mapserver docker image camptocamp/mapserver?</font>
<div> </div>
</div>
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
a:link, span.x_MsoHyperlink
        {color:blue;
        text-decoration:underline}
span.x_contentpasted0
        {}
span.x_EmailStyle21
        {font-family:"Calibri",sans-serif;
        color:windowtext}
.x_MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
div.x_WordSection1
        {}
-->
</style>
<div lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="x_WordSection1">
<p class="x_MsoNormal">What isn’t working with the configuration you have in place on docker? The locations aren’t virtual hosts so they’d be sharing a mapserver config file. The config file support will fall back to an environment variable if the value isn’t
 set explicitly in the config file – we get that for free with the CPL functions being used. So, at first glance it seems like having a custom value for MS_MAPFILE based on location should work assuming you don’t have that value set in the mapserver config
 file.</p>
<p class="x_MsoNormal"> </p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="x_MsoNormal"><b>From:</b> MapServer-users <mapserver-users-bounces@lists.osgeo.org>
<b>On Behalf Of </b>Marcin Niemyjski via MapServer-users<br>
<b>Sent:</b> Thursday, January 5, 2023 5:46 AM<br>
<b>To:</b> Marcin Niemyjski via MapServer-users <mapserver-users@lists.osgeo.org><br>
<b>Subject:</b> [MapServer-users] How to create aliases on mapserver docker image camptocamp/mapserver?</p>
</div>
</div>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"> </p>
<div class="x_MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center">
</div>
<div>
<div>
<p class="x_MsoNormal"><span class="x_contentpasted0"><span style="font-size:12.0pt; color:black; background:white">Hello,</span></span></p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal"><span class="x_contentpasted0"><span style="font-size:12.0pt; color:black; background:white">I'm using camptocamp mapserver docker image. I want to create Aliases so I can access several mapfiles using their file names,
</span></span></p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal"><span class="x_contentpasted0"><span style="font-size:12.0pt; color:black; background:white">example:
<a href="http://www.service.pl/WMSNo1">www.service.pl/WMSNo1</a> instead of <a href="https://gcc02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.service.pl%2F&data=05%7C01%7Csteve.lime%40state.mn.us%7C2d095d4e751240e1742808daef12621c%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C638085159479253733%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=6htBeD8jSSlM6UEANoVIQFUSFR3oQHYl%2F%2FQL3JCh97c%3D&reserved=0">
www.service.pl</a>?map=/etc/mapserver/WMSNo1.map. </span></span></p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal"><span class="x_contentpasted0"><span style="font-size:12.0pt; color:black; background:white">Could you please provide me an example of how to edit /etc/apache2/apache2.conf to make it work?
</span></span></p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal"><span class="x_contentpasted0"><span style="font-size:12.0pt; color:black; background:white">On regular Mapserver I'm using this as alias and it works just fine:</span></span></p>
</div>
<div>
<p class="x_MsoNormal"><span class="x_contentpasted0"><span style="font-size:12.0pt; color:black; background:white">Alias /Sentinel2Ukraine "/usr/lib/cgi-bin/mapserv"
</span></span><span class="x_contentpasted0"><span style="font-size:12.0pt; color:black; background:white"></span></span></p>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black; background:white"><Location /Sentinel2Ukraine ></span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black; background:white">   SetHandler cgi-script</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black; background:white">   Options ExecCGI</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black; background:white">   SetEnv MS_MAPFILE "/DyskPlanetiler/MAPFILEs/automatyzacja/Sentinel2Ukraine.map"</span></p>
</div>
<p class="x_MsoNormal"><span class="x_contentpasted0"><span style="font-size:12.0pt; color:black; background:white"></Location></span></span></p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal"><span class="x_contentpasted0"><span style="font-size:12.0pt; color:black; background:white">On camptocamp I created somthing similiar to code above:</span></span></p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal"><span class="x_contentpasted0"><span style="font-size:12.0pt; color:black; background:white">Alias /Sentinel2Ukraine "/usr/local/bin/mapserv"
</span></span><span class="x_contentpasted0"><span style="font-size:12.0pt; color:black; background:white"></span></span></p>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black; background:white"><Location /Sentinel2Ukraine ></span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black; background:white">        SetHandler cgi-script</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black; background:white">        Options ExecCGI</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black; background:white">        SetEnv MS_MAPFILE "/etc/mapserver/Sentinel2Ukraine.map"</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black; background:white"></Location></span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black; background:white"> </span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black; background:white">Alias /Sentinel2Poland "/usr/local/bin/mapserv"</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black; background:white"><Location /Sentinel2Poland ></span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black; background:white">        SetHandler cgi-script</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black; background:white">        Options ExecCGI</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black; background:white">        SetEnv MS_MAPFILE "/etc/mapserver/Sentinel-2-PL.map"</span></p>
</div>
<p class="x_MsoNormal"><span class="x_contentpasted0"><span style="font-size:12.0pt; color:black; background:white"></Location></span></span></p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal"><span class="x_contentpasted0"><span style="font-size:12.0pt; color:black; background:white">Best,</span></span></p>
</div>
<div>
<p class="x_MsoNormal"><span class="x_contentpasted0"><span style="font-size:12.0pt; color:black; background:white">Marcin</span></span></p>
</div>
<div>
<div id="x_Signature">
<div>
<table class="x_MsoNormalTable" border="0" cellpadding="0" width="95%" style="width:95.0%">
<tbody>
<tr style="height:33.75pt">
<td style="padding:.75pt .75pt .75pt .75pt; height:33.75pt"></td>
</tr>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt"></td>
</tr>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt"></td>
</tr>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt"></td>
</tr>
</tbody>
</table>
<p class="x_MsoNormal"><span style="display:none"> </span></p>
<table class="x_MsoNormalTable" border="0" cellpadding="0" id="x_pbpsiglinktable">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="x_MsoNormal"><a href="https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Foutlook.office.com%2Fbookwithme%2Fuser%2F6347c7def05a478ba013ae948648789d%40cloudferro.com%3Fanonymous%26ep%3Dsignature&data=05%7C01%7Csteve.lime%40state.mn.us%7C2d095d4e751240e1742808daef12621c%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C638085159479253733%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=pm6EgkSTxCH%2Fe9Ht44OvJShOVjNR2JbBMGwSvF3f3Tk%3D&reserved=0"><span style="text-decoration:none"><img border="0" width="20" height="20" id="x_Picture_x0020_2" style="width:.2083in; height:.2083in" data-outlook-trace="F:1|T:1" src="cid:image001.png@01D921B4.154084C0"></span></a></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt"></td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="x_MsoNormal"><a href="https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Foutlook.office.com%2Fbookwithme%2Fuser%2F6347c7def05a478ba013ae948648789d%40cloudferro.com%3Fanonymous%26ep%3Dsignature&data=05%7C01%7Csteve.lime%40state.mn.us%7C2d095d4e751240e1742808daef12621c%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C638085159479409085%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=X8XCOdQDaHr%2BwCXgeoyshmg5ErqGIMIda6dy7uthFfo%3D&reserved=0"><span style="color:#0078D4; text-decoration:none">Book
 time to meet with me</span></a></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<table class="x_MsoNormalTable" border="0" cellpadding="0">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt"></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p class="x_MsoNormal"> </p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>