<div dir="ltr"><div dir="ltr">Collin and list,<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 22, 2024 at 12:06 PM Collin Coe <<a href="mailto:CoeC@vanburencountymi.gov">CoeC@vanburencountymi.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-8319858195343998105">
<div dir="ltr">
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Chris,</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Thank you so much for all the additional information, to be honest a lot of it is quite a bit over my head, but I will use it to hopefully point our folks at Mango down the right path.</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
It is good to have a second set of eyes verify what we thought, that our Apache/QGIS server is in fact serving this WMS data, but that Mango is just formatting their requests incorrectly.</div></div></div></blockquote><div><br></div><div>You are most welcome of course.</div><div><br></div><div>I am guessing - and maybe off in a misleading direction - that there is some kind of configuration in the Mango stuff that looks like a template that you would set up to send your queries to the map server. For instance, somewhere you should be specifying things like database connection parameters or in your case the .qgz file.</div><div><br></div><div>Also I wonder if the layer names in the Mango application correspond to the layer names in QGIS and if not, how you go about setting up that kind of correspondence. For example, you might have a "streets" layer called "12345" on the Mango side and "transportation" on the QGIS side. <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-8319858195343998105"><div dir="ltr">
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Thanks!</div>
<div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div id="m_-8319858195343998105Signature">
<div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="background-color:rgb(255,255,255);margin:0px">
<div style="background-color:white;margin:0px;height:132px">
<div style="margin:0px;height:134px">
<table style="text-align:left">
<tbody>
<tr>
<td style="text-align:left;border-right:2.25pt solid black;padding-right:5.25pt;vertical-align:top">
<p style="text-align:left;line-height:15.4px;margin:0px;font-family:Calibri,sans-serif;font-size:11pt">
<span style="color:black"> <img width="100" height="100" style="width: 100px; height: 100px; min-width: auto; min-height: auto; margin: 0px;" src="cid:ii_18dd29e48904ea7b3f11"></span></p>
<p style="text-align:left;line-height:15.4px;margin:0px;font-family:Calibri,sans-serif;font-size:11pt">
<span style="font-family:Arial,sans-serif;font-size:8pt;color:black;line-height:11.2px"> </span></p>
<p style="text-align:left;line-height:15.4px;margin:0px;font-family:Calibri,sans-serif;font-size:11pt">
<span style="font-family:Arial,sans-serif;color:black"> </span><span style="font-family:Arial,sans-serif;font-size:13pt;color:rgb(33,53,69);line-height:18.2px"><a href="https://www.facebook.com/VanBurenCountyMI/" rel="noopener noreferrer" style="color:rgb(33,53,69);margin:0px" target="_blank"><img alt="Facebook" width="24" height="24" style="width: 24px; height: 24px; min-width: auto; min-height: auto; margin: 0px;" src="cid:ii_18dd29e4890a0be5a212"></a></span><span style="font-family:Arial,sans-serif;font-size:13pt;color:rgb(9,21,35);line-height:18.2px">
</span><span style="font-family:Arial,sans-serif;font-size:13pt;color:rgb(33,53,69);line-height:18.2px"><a href="https://www.linkedin.com/company/van-buren-county-government" rel="noopener noreferrer" style="color:rgb(33,53,69);margin:0px" target="_blank"><img alt="LinkedIn" width="23" height="24" style="width: 23px; height: 24px; min-width: auto; min-height: auto; margin: 0px;" src="cid:ii_18dd29e48901fe160793"></a></span><span style="font-family:Arial,sans-serif;font-size:13pt;color:rgb(9,21,35);line-height:18.2px">
</span><span style="font-family:Arial,sans-serif;font-size:13pt;color:rgb(33,53,69);line-height:18.2px"><a href="https://twitter.com/VanBurenCoMI" rel="noopener noreferrer" style="color:rgb(33,53,69);margin:0px" target="_blank"><img alt="Twitter" width="24" height="24" style="width: 24px; height: 24px; min-width: auto; min-height: auto; margin: 0px;" src="cid:ii_18dd29e4890eb5f790e4"></a></span></p>
</td>
<td style="text-align:left;padding-left:9pt">
<table style="text-align:left;width:349.5pt">
<tbody>
<tr>
<td colspan="2" style="text-align:left;padding-bottom:3.75pt;width:349.5pt">
<p style="text-align:left;line-height:15.4px;margin:0px;font-family:Calibri,sans-serif;font-size:11pt">
<span style="font-family:Arial,sans-serif;color:rgb(51,51,51)"><b>Collin Coe</b></span></p>
</td>
</tr>
<tr>
<td colspan="2" style="text-align:left;width:349.5pt">
<p style="text-align:left;line-height:15.4px;margin:0px;font-family:Calibri,sans-serif;font-size:11pt">
<span style="font-family:Arial,sans-serif;color:rgb(51,51,51)"><i>IT Operations Manager</i></span></p>
</td>
</tr>
<tr>
<td colspan="2" style="text-align:left;width:349.5pt">
<p style="text-align:left;line-height:15.4px;margin:0px;font-family:Calibri,sans-serif;font-size:11pt">
<span style="font-family:Arial,sans-serif;color:black"><b>Van Buren County Information Services</b></span></p>
</td>
</tr>
<tr>
<td style="text-align:left;vertical-align:top;width:15pt">
<p style="text-align:left;line-height:15.4px;margin:0px;font-family:Calibri,sans-serif;font-size:11pt">
<span style="font-family:Arial,sans-serif;color:black">a:</span></p>
</td>
<td style="text-align:left;vertical-align:top;width:334.5pt">
<p style="text-align:left;line-height:15.4px;margin:0px;font-family:Calibri,sans-serif;font-size:11pt">
<span style="font-family:Arial,sans-serif;color:black">219 E. Paw Paw St, Suite 202</span></p>
<p style="text-align:left;line-height:15.4px;margin:0px;font-family:Calibri,sans-serif;font-size:11pt">
<span style="font-family:Arial,sans-serif;color:black">Paw Paw, MI 49079</span></p>
</td>
</tr>
<tr>
<td style="text-align:left;vertical-align:top;width:15pt">
<p style="text-align:left;line-height:15.4px;margin:0px;font-family:Calibri,sans-serif;font-size:11pt">
<span style="font-family:Arial,sans-serif;color:rgb(51,51,51)">t: </span></p>
</td>
<td style="text-align:left;vertical-align:top;width:334.5pt">
<p style="text-align:left;line-height:15.4px;margin:0px;font-family:Calibri,sans-serif;font-size:11pt">
<span style="font-family:Arial,sans-serif;color:rgb(51,51,51)">269-657-8266 ext. 1248</span></p>
</td>
</tr>
<tr>
<td style="text-align:left;vertical-align:top;width:15pt">
<p style="text-align:left;line-height:15.4px;margin:0px;font-family:Calibri,sans-serif;font-size:11pt">
<span style="font-family:Arial,sans-serif;color:rgb(51,51,51)">f:</span></p>
</td>
<td style="text-align:left;vertical-align:top;width:334.5pt">
<p style="text-align:left;line-height:15.4px;margin:0px;font-family:Calibri,sans-serif;font-size:11pt">
<span style="font-family:Arial,sans-serif;color:rgb(51,51,51)">269-657-8297</span></p>
</td>
</tr>
<tr>
<td style="text-align:left;vertical-align:top;width:15pt;height:16.65pt">
<p style="text-align:left;line-height:15.4px;margin:0px;font-family:Calibri,sans-serif;font-size:11pt">
<span style="font-family:Arial,sans-serif;color:black">w:</span></p>
</td>
<td style="text-align:left;vertical-align:top;width:334.5pt;height:16.65pt">
<p style="text-align:left;line-height:15.4px;margin:0px;font-family:Calibri,sans-serif;font-size:11pt">
<span style="color:black"><a href="https://www.vanburencountymi.gov/" rel="noopener noreferrer" style="margin:0px" target="_blank">https://www.vanburencountymi.gov</a></span><span style="font-family:Arial,sans-serif;color:black"> </span><span style="font-family:Arial,sans-serif;color:rgb(51,51,51)"> </span><span style="font-family:Arial,sans-serif;color:black">e:</span><span style="font-family:Arial,sans-serif;color:rgb(51,51,51)"> <a href="mailto:coec@vanburencountymi.gov" style="margin:0px" target="_blank">coec@vanburencountymi.gov</a></span></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div style="text-align:left;margin-right:0px;margin-left:0px"><span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:black"><br>
</span><span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:15px;color:black;background-color:white">Need to meet with me? Book a meeting or check my availability with this link:
<a href="https://outlook.office365.com/owa/calendar/CollinCoePersonalBookings@VanBurenCo.onmicrosoft.com/bookings/" title="https://outlook.office365.com/owa/calendar/CollinCoePersonalBookings@VanBurenCo.onmicrosoft.com/bookings/" rel="noopener noreferrer" style="margin:0px;background-color:white" target="_blank">
Microsoft Bookings</a></span></div>
</div>
<span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><br>
</span></div>
</div>
</div>
<div id="m_-8319858195343998105appendonsend"></div>
<hr style="display:inline-block;width:98%">
<div id="m_-8319858195343998105divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> chris hermansen <<a href="mailto:clhermansen@gmail.com" target="_blank">clhermansen@gmail.com</a>><br>
<b>Sent:</b> Thursday, February 22, 2024 2:42 PM<br>
<b>To:</b> Collin Coe <<a href="mailto:CoeC@vanburencountymi.gov" target="_blank">CoeC@vanburencountymi.gov</a>><br>
<b>Cc:</b> <a href="mailto:qgis-user@lists.osgeo.org" target="_blank">qgis-user@lists.osgeo.org</a> <<a href="mailto:qgis-user@lists.osgeo.org" target="_blank">qgis-user@lists.osgeo.org</a>><br>
<b>Subject:</b> Re: [Qgis-user] QGIS and Mango</font>
<div> </div>
</div>
<div>
<div style="background-color:pink;border:0px dotted rgb(0,51,51);padding:0.2em">
<div style="font-size:10pt;font-family:sans-serif;color:black;font-weight:bold;padding:0.2em">
This email was sent from outside your organization. Please use caution when clicking links or opening attachments.</div>
</div>
<hr>
<div>
<div dir="ltr">
<div dir="ltr">Collin and list,<br>
</div>
<br>
<div>
<div dir="ltr">On Thu, Feb 22, 2024 at 10:19 AM Collin Coe <<a href="mailto:CoeC@vanburencountymi.gov" target="_blank">CoeC@vanburencountymi.gov</a>> wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div dir="ltr">
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Thank you for your response, see my answers below.</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<ul style="margin-top:0px;margin-bottom:0px;list-style-type:disc">
<li style="font-size:15px;color:rgb(0,0,0)">
<div><span style="font-size:15px;color:rgb(0,0,0)">Note "the server understands the request but refuses to authorize it".</span></div>
</li><ul style="margin-top:0px;margin-bottom:0px;list-style-type:circle">
<li style="font-size:15px;color:rgb(0,0,0)">
<div style="text-align:left;text-indent:0px;background-color:rgb(255,255,255);margin:0px">
<span style="font-size:15px;color:rgb(0,0,0)">That was my thought, as if I shut the Apache service down, the request times out instead.<br>
<br>
</span></div>
</li></ul>
<li style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<div style="background-color:rgb(255,255,255);margin:0px">
<div style="text-align:left;text-indent:0px"><span style="font-size:15px;color:rgb(0,0,0)">Looking at your URL, it appears your request doesn't go directly to the QGIS server, but rather goes to
<a href="https://urldefense.com/v3/__http://mangomap.com__;!!PO4-HVKE-L9l8-c!hPRhCbuNMimPUluNMhaOjOJgXVTDfVBj1JPev1G7lPbcxJRAJ-TJ3tF3MBfmcrEf2zi3lwhtSo22EFtbSFQ2WPE90Tv8$" id="m_-8319858195343998105x_m_7519245008523005635OWA283101d6-6850-ef8d-f901-b7dd231edca2" rel="noopener noreferrer" style="margin:0px" target="_blank">
mangomap.com</a> (it is "mangomap" and not "mangomaps", correct?).</span></div>
</div>
</li><ul style="margin-top:0px;margin-bottom:0px;list-style-type:circle">
<li style="font-size:15px;color:rgb(0,0,0)">
<div style="text-align:left;text-indent:0px"><span style="font-size:15px;color:rgb(0,0,0)">The URL that we program into Mango is below, the one from the error is what I assume is Mango reformatting the URL behind the scenes as it presents in their UI to me.
Note this URL is something that Mango advised us to use for the call on our server. We have tried it with the one specified in the below question as well to the same results.</span></div>
</li><ul style="margin-top:0px;margin-bottom:0px;list-style-type:square">
<li style="font-size:15px;color:rgb(0,0,0)">
<div style="text-align:left;text-indent:0px"><span style="font-size:15px;color:rgb(0,0,0)"><a href="https://wms.vanburencountymi.gov/cgi-bin/qgis_mapserv.fcgi.exe?service=WMS&request=GetCapabilities&version=1.3.0" id="m_-8319858195343998105x_m_7519245008523005635LPlnk535986" target="_blank">https://wms.vanburencountymi.gov/cgi-bin/qgis_mapserv.fcgi.exe?service=WMS&request=GetCapabilities&version=1.3.0</a><br>
</span></div>
</li></ul>
</ul>
</ul>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>If I try to access this URL with curl I get an error, I suppose because no parameters are specified:</div>
<div><br>
</div>
<div><span style="font-family:monospace"> $ curl '<a href="https://wms.vanburencountymi.gov/cgi-bin/qgis_mapserv.fcgi.exe?service=WMS&request=GetCapabilities&version=1.3.0" target="_blank">https://wms.vanburencountymi.gov/cgi-bin/qgis_mapserv.fcgi.exe?service=WMS&request=GetCapabilities&version=1.3.0</a>'<br>
<?xml version="1.0" encoding="UTF-8"?><br>
<ServerException>Layer(s) not valid</ServerException></span></div>
<div><span style="font-family:monospace">$</span><br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div dir="ltr">
<ul style="margin-top:0px;margin-bottom:0px;list-style-type:disc">
<ul style="margin-top:0px;margin-bottom:0px;list-style-type:circle">
<ul style="margin-top:0px;margin-bottom:0px;list-style-type:square">
<li style="font-size:15px;color:rgb(0,0,0)">
<div style="text-align:left;text-indent:0px"><span style="font-size:15px;color:rgb(0,0,0)"><br>
</span></div>
</li></ul>
</ul>
<li style="font-size:15px;color:rgb(0,0,0)">
<div style="text-align:left;text-indent:0px"><span style="font-size:15px;color:rgb(0,0,0)">Is your qgis server / apache server / network policy set up to accept requests from outside your network?</span></div>
</li><ul style="margin-top:0px;margin-bottom:0px;list-style-type:circle">
<li style="font-size:15px;color:rgb(0,0,0)">
<div style="text-align:left;text-indent:0px;background-color:rgb(255,255,255);margin:0px">
<span style="font-size:15px;color:rgb(0,0,0)">It is. We have tested with ARCGIS and it is able to pull in the WMS data fine with the below URL</span></div>
</li><ul style="margin-top:0px;margin-bottom:0px;list-style-type:square">
<li style="font-size:15px;color:rgb(0,0,0)">
<div style="text-align:left;text-indent:0px;background-color:rgb(255,255,255);margin:0px">
<span style="font-size:15px;color:rgb(0,0,0)"><a href="https://wms.vanburencountymi.gov/cgi-bin/qgis_mapserv.fcgi.exe?service=WMS&request=GetCapabilities&version=1.3.0&crs=EPSG:3857&map=VBCWMS1.qgz&layers=APTEST" id="m_-8319858195343998105x_m_7519245008523005635OWA5d5eae6f-c733-feda-c83c-4da8838f84d4" title="https://wms.vanburencountymi.gov/cgi-bin/qgis_mapserv.fcgi.exe?service=wms&request=getcapabilities&version=1.3.0&crs=epsg:3857&map=vbcwms1.qgz&layers=aptest" rel="noreferrer noopener" target="_blank">https://wms.vanburencountymi.gov/cgi-bin/qgis_mapserv.fcgi.exe?service=WMS&request=GetCapabilities&version=1.3.0&crs=EPSG:3857&map=VBCWMS1.qgz&layers=APTEST</a><br>
</span></div>
</li></ul>
</ul>
</ul>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>If I try to access this URL with curl I get stuff:</div>
<div><br>
</div>
<div><span style="font-family:monospace">$ curl '<a href="https://wms.vanburencountymi.gov/cgi-bin/qgis_mapserv.fcgi.exe?service=WMS&request=GetCapabilities&version=1.3.0&crs=EPSG:3857&map=VBCWMS1.qgz&layers=APTEST" target="_blank">https://wms.vanburencountymi.gov/cgi-bin/qgis_mapserv.fcgi.exe?service=WMS&request=GetCapabilities&version=1.3.0&crs=EPSG:3857&map=VBCWMS1.qgz&layers=APTEST</a>'</span></div>
<div><span style="font-family:monospace"><?xml version="1.0" encoding="utf-8"?><br>
<WMS_Capabilities version="1.3.0" xsi:schemaLocation="<a href="https://urldefense.com/v3/__http://www.opengis.net/wms__;!!PO4-HVKE-L9l8-c!hEv2n3Gmchd9UNWt1ZcDY0oAbsr6Rb10ZV94u2DxjFXxQ6oN-l1w1wgM6gy3Lzu-CMBxAd0sgdiCRtHMI5ARspbQVfKg$" target="_blank">http://www.opengis.net/wms</a>
<a href="https://urldefense.com/v3/__http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd__;!!PO4-HVKE-L9l8-c!hEv2n3Gmchd9UNWt1ZcDY0oAbsr6Rb10ZV94u2DxjFXxQ6oN-l1w1wgM6gy3Lzu-CMBxAd0sgdiCRtHMI5ARsuBDJvaM$" target="_blank">
http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd</a> <a href="https://urldefense.com/v3/__http://www.opengis.net/sld__;!!PO4-HVKE-L9l8-c!hEv2n3Gmchd9UNWt1ZcDY0oAbsr6Rb10ZV94u2DxjFXxQ6oN-l1w1wgM6gy3Lzu-CMBxAd0sgdiCRtHMI5ARshj82gO1$" target="_blank">
http://www.opengis.net/sld</a> <a href="https://urldefense.com/v3/__http://schemas.opengis.net/sld/1.1.0/sld_capabilities.xsd__;!!PO4-HVKE-L9l8-c!hEv2n3Gmchd9UNWt1ZcDY0oAbsr6Rb10ZV94u2DxjFXxQ6oN-l1w1wgM6gy3Lzu-CMBxAd0sgdiCRtHMI5ARsiCRAGUo$" target="_blank">
http://schemas.opengis.net/sld/1.1.0/sld_capabilities.xsd</a> <a href="https://urldefense.com/v3/__http://www.qgis.org/wms__;!!PO4-HVKE-L9l8-c!hEv2n3Gmchd9UNWt1ZcDY0oAbsr6Rb10ZV94u2DxjFXxQ6oN-l1w1wgM6gy3Lzu-CMBxAd0sgdiCRtHMI5ARstKjFNDB$" target="_blank">
http://www.qgis.org/wms</a> <a href="https://wms.vanburencountymi.gov/cgi-bin/qgis_mapserv.fcgi.exe?MAP=VBCWMS1.qgz&SERVICE=WMS&REQUEST=GetSchemaExtension" target="_blank">
https://wms.vanburencountymi.gov/cgi-bin/qgis_mapserv.fcgi.exe?MAP=VBCWMS1.qgz&SERVICE=WMS&REQUEST=GetSchemaExtension</a>" xmlns:sld="<a href="https://urldefense.com/v3/__http://www.opengis.net/sld__;!!PO4-HVKE-L9l8-c!hEv2n3Gmchd9UNWt1ZcDY0oAbsr6Rb10ZV94u2DxjFXxQ6oN-l1w1wgM6gy3Lzu-CMBxAd0sgdiCRtHMI5ARshj82gO1$" target="_blank">http://www.opengis.net/sld</a>"
xmlns:qgs="<a href="https://urldefense.com/v3/__http://www.qgis.org/wms__;!!PO4-HVKE-L9l8-c!hEv2n3Gmchd9UNWt1ZcDY0oAbsr6Rb10ZV94u2DxjFXxQ6oN-l1w1wgM6gy3Lzu-CMBxAd0sgdiCRtHMI5ARstKjFNDB$" target="_blank">http://www.qgis.org/wms</a>" xmlns="<a href="https://urldefense.com/v3/__http://www.opengis.net/wms__;!!PO4-HVKE-L9l8-c!hEv2n3Gmchd9UNWt1ZcDY0oAbsr6Rb10ZV94u2DxjFXxQ6oN-l1w1wgM6gy3Lzu-CMBxAd0sgdiCRtHMI5ARspbQVfKg$" target="_blank">http://www.opengis.net/wms</a>"
xmlns:xsi="<a href="https://urldefense.com/v3/__http://www.w3.org/2001/XMLSchema-instance__;!!PO4-HVKE-L9l8-c!hEv2n3Gmchd9UNWt1ZcDY0oAbsr6Rb10ZV94u2DxjFXxQ6oN-l1w1wgM6gy3Lzu-CMBxAd0sgdiCRtHMI5ARshfzYrkg$" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>"><br>
<Service><br>
<Name>WMS</Name><br>
<Title>VBCWMS1</Title><br>
<KeywordList><br>
<Keyword vocabulary="ISO">infoMapAccessService</Keyword><br>
</KeywordList><br>
<OnlineResource xmlns:xlink="<a href="https://urldefense.com/v3/__http://www.w3.org/1999/xlink__;!!PO4-HVKE-L9l8-c!hEv2n3Gmchd9UNWt1ZcDY0oAbsr6Rb10ZV94u2DxjFXxQ6oN-l1w1wgM6gy3Lzu-CMBxAd0sgdiCRtHMI5ARsq3bDQSW$" target="_blank">http://www.w3.org/1999/xlink</a>" xlink:type="simple"
xlink:href="<a href="https://wms.vanburencountymi.gov/cgi-bin/qgis_mapserv.fcgi.exe?MAP=VBCWMS1.qgz" target="_blank">https://wms.vanburencountymi.gov/cgi-bin/qgis_mapserv.fcgi.exe?MAP=VBCWMS1.qgz</a>"/><br>
<Fees>conditions unknown</Fees><br>
<AccessConstraints>None</AccessConstraints><br>
</Service><br>
<Capability><br>
<Request><br>
<GetCapabilities><br>
<Format>text/xml</Format><br>
<DCPType><br>
<HTTP><br>
<Get><br>
<OnlineResource xmlns:xlink="<a href="https://urldefense.com/v3/__http://www.w3.org/1999/xlink__;!!PO4-HVKE-L9l8-c!hEv2n3Gmchd9UNWt1ZcDY0oAbsr6Rb10ZV94u2DxjFXxQ6oN-l1w1wgM6gy3Lzu-CMBxAd0sgdiCRtHMI5ARsq3bDQSW$" target="_blank">http://www.w3.org/1999/xlink</a>" xlink:type="simple"
xlink:href="<a href="https://wms.vanburencountymi.gov/cgi-bin/qgis_mapserv.fcgi.exe?MAP=VBCWMS1.qgz&" target="_blank">https://wms.vanburencountymi.gov/cgi-bin/qgis_mapserv.fcgi.exe?MAP=VBCWMS1.qgz&</a>;"/><br>
</Get><br>
</HTTP><br>
</DCPType><br>
</GetCapabilities></span></div>
<div><span style="font-family:monospace">...</span></div>
<div><span style="font-family:monospace"> </Capability><br>
</WMS_Capabilities></span></div>
<div><span style="font-family:monospace">$</span></div>
<div><br>
</div>
<div>If I try the original you sent to me with curl, I get:</div>
<div><br>
</div>
<div><span style="font-family:monospace">$ curl '<a href="https://urldefense.com/v3/__https://mangomap.com/clients/5dfb3952-42b1-11ee-83b6-027d7e0bb32b/coverage_stores/get_wms_layers?wms_source=https*253A*252F*252Fwms.vanburencountymi.gov*252Fcgi-bin*252Fqgis_mapserv.fcgi.exe*253Fservice*253DWMS*2526request*253DGetCapabilities*2526version*253D1.3.0&_=1708610138093__;JSUlJSUlJSUlJSU!!PO4-HVKE-L9l8-c!hEv2n3Gmchd9UNWt1ZcDY0oAbsr6Rb10ZV94u2DxjFXxQ6oN-l1w1wgM6gy3Lzu-CMBxAd0sgdiCRtHMI5ARslDQ_hMf$" target="_blank">https://mangomap.com/clients/5dfb3952-42b1-11ee-83b6-027d7e0bb32b/coverage_stores/get_wms_layers?wms_source=https%253A%252F%252Fwms.vanburencountymi.gov%252Fcgi-bin%252Fqgis_mapserv.fcgi.exe%253Fservice%253DWMS%2526request%253DGetCapabilities%2526version%253D1.3.0&_=1708610138093</a>'<br>
<html><body>You are being <a href="<a href="https://urldefense.com/v3/__https://mangomap.com/sign-in__;!!PO4-HVKE-L9l8-c!hEv2n3Gmchd9UNWt1ZcDY0oAbsr6Rb10ZV94u2DxjFXxQ6oN-l1w1wgM6gy3Lzu-CMBxAd0sgdiCRtHMI5ARsoQ3U8xI$" target="_blank">https://mangomap.com/sign-in</a>">redirected</a>.</body></html>$</span></div>
<div><br>
</div>
<div>which lets me know <a href="https://urldefense.com/v3/__http://mangomap.com__;!!PO4-HVKE-L9l8-c!hEv2n3Gmchd9UNWt1ZcDY0oAbsr6Rb10ZV94u2DxjFXxQ6oN-l1w1wgM6gy3Lzu-CMBxAd0sgdiCRtHMI5ARsu7Gfk_h$" target="_blank">
mangomap.com</a> is doing a redirect as we suspected. If I try with the curl "follow redirects" switch I am sent to
<a href="https://urldefense.com/v3/__http://mangomap.com__;!!PO4-HVKE-L9l8-c!hEv2n3Gmchd9UNWt1ZcDY0oAbsr6Rb10ZV94u2DxjFXxQ6oN-l1w1wgM6gy3Lzu-CMBxAd0sgdiCRtHMI5ARsu7Gfk_h$" target="_blank">
mangomap.com</a>'s login page:</div>
<div><br>
</div>
<div><span style="font-family:monospace"> $ curl -L '<a href="https://urldefense.com/v3/__https://mangomap.com/clients/5dfb3952-42b1-11ee-83b6-027d7e0bb32b/coverage_stores/get_wms_layers?wms_source=https*253A*252F*252Fwms.vanburencountymi.gov*252Fcgi-bin*252Fqgis_mapserv.fcgi.exe*253Fservice*253DWMS*2526request*253DGetCapabilities*2526version*253D1.3.0&_=1708610138093__;JSUlJSUlJSUlJSU!!PO4-HVKE-L9l8-c!hEv2n3Gmchd9UNWt1ZcDY0oAbsr6Rb10ZV94u2DxjFXxQ6oN-l1w1wgM6gy3Lzu-CMBxAd0sgdiCRtHMI5ARslDQ_hMf$" target="_blank">https://mangomap.com/clients/5dfb3952-42b1-11ee-83b6-027d7e0bb32b/coverage_stores/get_wms_layers?wms_source=https%253A%252F%252Fwms.vanburencountymi.gov%252Fcgi-bin%252Fqgis_mapserv.fcgi.exe%253Fservice%253DWMS%2526request%253DGetCapabilities%2526version%253D1.3.0&_=1708610138093</a>'<br>
<!DOCTYPE html><br>
<html><br>
<head><br>
<title>Sign in to Mango</title></span></div>
<div><span style="font-family:monospace"><br>
</span></div>
<div><span style="font-family:monospace">...</span></div>
<div><span style="font-family:monospace"><br>
</html><br>
$</span></div>
<div><br>
</div>
<div>So, so far so good, but not talking to your qgis server yet.</div>
<div><br>
</div>
<div>You might find it worthwhile continuing this way with curl, supplying your login credentials, so you can get a bit more information on what's going on.</div>
<div><br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div dir="ltr">
<ul style="margin-top:0px;margin-bottom:0px;list-style-type:disc">
<ul style="margin-top:0px;margin-bottom:0px;list-style-type:circle">
<ul style="margin-top:0px;margin-bottom:0px;list-style-type:square">
<li style="font-size:15px;color:rgb(0,0,0)">
<div style="text-align:left;text-indent:0px;background-color:rgb(255,255,255);margin:0px">
<span style="font-size:15px;color:rgb(0,0,0)"><br>
</span></div>
</li></ul>
</ul>
<li style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<div style="text-align:left;text-indent:0px;background-color:rgb(255,255,255);margin:0px">
<span style="font-size:15px;color:rgb(0,0,0)">The text "(anonymous)" appears in the log following. Could this mean that
<a href="https://urldefense.com/v3/__http://mangomap.com__;!!PO4-HVKE-L9l8-c!hPRhCbuNMimPUluNMhaOjOJgXVTDfVBj1JPev1G7lPbcxJRAJ-TJ3tF3MBfmcrEf2zi3lwhtSo22EFtbSFQ2WPE90Tv8$" id="m_-8319858195343998105x_m_7519245008523005635OWA2df071a2-e4ad-cdab-209b-bf22cd2b4838" rel="noopener noreferrer" style="margin:0px" target="_blank">
mangomap.com</a> is trying to access your qgis server as user "anonymous"?</span></div>
</li><ul style="margin-top:0px;margin-bottom:0px;list-style-type:circle">
<li style="font-size:15px;color:rgb(0,0,0)">
<div style="text-align:left;text-indent:0px;background-color:rgb(255,255,255);margin:0px">
<span style="font-size:15px;color:rgb(0,0,0)">It is trying to access it anonymously, but I will note that ARCGIS also accesses it this way and works fine<br>
<br>
</span></div>
</li></ul>
<li style="font-size:15px;color:rgb(0,0,0)">
<div style="text-align:left;text-indent:0px;background-color:rgb(255,255,255);margin:0px">
<span style="font-size:15px;color:rgb(0,0,0)">When you configure MangoMap(s) to talk to your qgis server, have you entered the necessary credentials (user name and password)?</span></div>
</li><ul style="margin-top:0px;margin-bottom:0px;list-style-type:circle">
<li style="font-size:15px;color:rgb(0,0,0)">
<div style="text-align:left;text-indent:0px;background-color:rgb(255,255,255);margin:0px">
<span style="font-size:15px;color:rgb(0,0,0)">See above, it is availible anonymously. We will be locking it down with creds eventually, but for testing it is<br>
</span></div>
</li></ul>
</ul>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>Got it. <br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div dir="ltr">
<ul style="margin-top:0px;margin-bottom:0px;list-style-type:disc">
<ul style="margin-top:0px;margin-bottom:0px;list-style-type:circle">
<li style="font-size:15px;color:rgb(0,0,0)">
<div style="text-align:left;text-indent:0px;background-color:rgb(255,255,255);margin:0px">
<span style="font-size:15px;color:rgb(0,0,0)"><br>
</span></div>
</li></ul>
<li style="font-size:15px;color:rgb(0,0,0)">
<div style="text-align:left;text-indent:0px;background-color:rgb(255,255,255);margin:0px">
<span style="font-size:15px;color:rgb(0,0,0)">Can you verify that your qgis server is ok to respond to the "getcapabilities" request with the parameters supplied? Ie maybe try it with curl from inside your network?</span></div>
</li><ul style="margin-top:0px;margin-bottom:0px;list-style-type:circle">
<li style="font-size:15px;color:rgb(0,0,0)">
<div style="text-align:left;text-indent:0px;background-color:rgb(255,255,255);margin:0px">
<span style="font-size:15px;color:rgb(0,0,0)">This is one spot that I am thinking I am missing. I do have the allowed access type of GET allowed, in fact for testing we have all access types allowed at the moment, but I am not sure that we have set that up
properly. Below is a screencap of that part of my Apache config file. I shared that with the Mango folks, and they seen to think it looks good.</span></div>
</li></ul>
</ul>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>We've verified above that your Apache / QGIS configuration is correct using curl to access the URL you provided. So I don't think you need to tweak things in Apache.</div>
<div><br>
</div>
<div>I've pulled the redirect URL out of the <a href="https://urldefense.com/v3/__http://mangomap.com__;!!PO4-HVKE-L9l8-c!hEv2n3Gmchd9UNWt1ZcDY0oAbsr6Rb10ZV94u2DxjFXxQ6oN-l1w1wgM6gy3Lzu-CMBxAd0sgdiCRtHMI5ARsu7Gfk_h$" target="_blank">
mangomap.com</a> URL you provided in your first email; it looks like this:</div>
<div><br>
</div>
<div><a href="https://wms.vanburencountymi.gov/cgi-bin/qgis_mapserv.fcgi.exe?service=WMS&request=GetCapabilities&version=1.3.0&_=1708610138093" target="_blank">https://wms.vanburencountymi.gov/cgi-bin/qgis_mapserv.fcgi.exe?service=WMS&request=GetCapabilities&version=1.3.0&_=1708610138093</a></div>
<div><br>
</div>
<div>When I try a curl with that, I get a "Layer(s) not valid" exception returned:</div>
<div><br>
</div>
<div>$ curl '<a href="https://wms.vanburencountymi.gov/cgi-bin/qgis_mapserv.fcgi.exe?service=WMS&request=GetCapabilities&version=1.3.0&_=1708610138093" target="_blank">https://wms.vanburencountymi.gov/cgi-bin/qgis_mapserv.fcgi.exe?service=WMS&request=GetCapabilities&version=1.3.0&_=1708610138093</a>'<br>
<?xml version="1.0" encoding="UTF-8"?><br>
<ServerException>Layer(s) not valid</ServerException><br>
$</div>
<div><br>
</div>
<div>So it looks to me like MangoMaps is mangling your calls to getCapabilities. In particular MangoMaps is not supplying the parameters:</div>
<div><br>
</div>
crs=EPSG:3857</div>
<div>map=VBCWMS1.qgz</div>
<div>layers=APTEST
<div><br>
</div>
<div>
<div>
<div></div>
</div>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div></div>
</blockquote>
</div>
<div>that your working test call supplied, while it is supplying</div>
<div><br>
</div>
<div>version=1.3.0</div>
<div>_=1708610138093</div>
<div><br>
</div>
<div>Not sure what that "_" parameter is. Maybe map extent or map centre or something like that, in some kind of fixed format?<br>
</div>
<div><br>
</div>
<div>So something needs to be adjusted in the MangoMaps config so that it sends the crs, the map and the layers required.<br>
</div>
<div><br>
<span>-- </span><br>
<div dir="ltr">
<div dir="ltr">Chris Hermansen · clhermansen "at" gmail "dot" com<br>
<br>
C'est ma façon de parler.</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div></blockquote></div><br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr">Chris Hermansen · clhermansen "at" gmail "dot" com<br><br>C'est ma façon de parler.</div></div></div>