<div dir="ltr">If you really have to have two different wms_onlineresource and if Steve's suggestion to leave out the protocol didn't work, then you could create two ows URLs and use the map file's INCLUDE directive to refer to the same map file just using different wms_onlineresource in the two.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 2, 2017 at 11:14 AM, Andrea Peri <span dir="ltr"><<a href="mailto:aperi2007@gmail.com" target="_blank">aperi2007@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Jukka,<br>
my trouble come from a webapplication using geotools lbrary.<br>
Seem that the geotools when try to connect to a WFS server (and I<br>
guess also to the WMS)<br>
start with a getcapabilities request and remap the getmap using it.<br>
<br>
<br>
We have many portal using http.<br>
Now there is a new portal using https,<br>
and it should access to the same wms services.<br>
<br>
So I have a portal using https that is using also http protocol.<br>
As I understand the web browser refuse to allow an http request when<br>
the father page is coming from an https request blocking them.<br>
<br>
A.<br>
<br>
<br>
2017-05-02 16:50 GMT+02:00 Rahkonen Jukka (MML)<br>
<<a href="mailto:jukka.rahkonen@maanmittauslaitos.fi">jukka.rahkonen@<wbr>maanmittauslaitos.fi</a>>:<br>
<div class="HOEnZb"><div class="h5">> Hi,<br>
><br>
> Actually your Mapserver will respond both to http and https requests if your network let them both come through. OnlineResourse has no effect at all for Mapserver, you can set it to http://foo@bar if you wish. But WMS clients may have difficulties if they really interpret the GetMap URL and use it for further operations. QGIS and OpenJUMP have an override for using the same base URL that was used for doing GetCapabililies and that might suit for your case. OpenLayers, Leaflet etc. don't even parse GetCapabilities and http://foo@bar is totally OK for them.<br>
><br>
> -Jukka-<br>
><br>
><br>
><br>
> -----Alkuperäinen viesti-----<br>
> Lähettäjä: mapserver-users [mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-<wbr>bounces@lists.osgeo.org</a>] Puolesta Andrea Peri<br>
> Lähetetty: 2. toukokuuta 2017 15:37<br>
> Vastaanottaja: <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.<wbr>org</a><br>
> Aihe: [mapserver-users] Allow request in http and https<br>
><br>
> Hi,<br>
> I need to set a mapserver wms to responde both on an http url and on an https url.<br>
><br>
> I try seting two time the<br>
> wms_onlineresource value:<br>
><br>
>       "wms_onlineresource" "<a href="http://my-server/..." rel="noreferrer" target="_blank">http://my-server/...</a>."<br>
>       "wms_onlineresource" "<a href="https://my-server/..." rel="noreferrer" target="_blank">https://my-server/...</a>."<br>
><br>
> But the getcapabilites response oonly the second value.<br>
><br>
> Is possible to set two url in the wms_onlineresource  ?<br>
><br>
> Many thx.<br>
><br>
><br>
> --<br>
> -----------------<br>
> Andrea Peri<br>
> . . . . . . . . .<br>
> qwerty àèìòù<br>
> -----------------<br>
> ______________________________<wbr>_________________<br>
> mapserver-users mailing list<br>
> <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.<wbr>org</a><br>
> <a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/mapserver-<wbr>users</a><br>
<br>
<br>
<br>
--<br>
-----------------<br>
Andrea Peri<br>
. . . . . . . . .<br>
qwerty àèìòù<br>
-----------------<br>
______________________________<wbr>_________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.<wbr>org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/mapserver-<wbr>users</a></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Richard W. Greenwood, PLS<br><a href="http://www.greenwoodmap.com" target="_blank">www.greenwoodmap.com</a></div></div>
</div>