[mapserver-users] Allow request in http and https
Andrea Peri
aperi2007 at gmail.com
Tue May 2 15:26:03 PDT 2017
mmm...
Perhaps for the resource-online url could be better a setting like:
"ows_resourceonline" "auto"
Where "auto" mean that the mapserver retrieve the url (and the
protocol used) from the request url of the getcapability request.
This was the better solution.
Infact if the client request on an https protocol it will return a
capability files with all the request in https.
And if the client request using an http protocol it will return a
capability with http protocol.
2017-05-02 21:14 GMT+02:00 Richard Greenwood <richard.greenwood at gmail.com>:
> 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.
>
> On Tue, May 2, 2017 at 11:14 AM, Andrea Peri <aperi2007 at gmail.com> wrote:
>>
>> Hi Jukka,
>> my trouble come from a webapplication using geotools lbrary.
>> Seem that the geotools when try to connect to a WFS server (and I
>> guess also to the WMS)
>> start with a getcapabilities request and remap the getmap using it.
>>
>>
>> We have many portal using http.
>> Now there is a new portal using https,
>> and it should access to the same wms services.
>>
>> So I have a portal using https that is using also http protocol.
>> As I understand the web browser refuse to allow an http request when
>> the father page is coming from an https request blocking them.
>>
>> A.
>>
>>
>> 2017-05-02 16:50 GMT+02:00 Rahkonen Jukka (MML)
>> <jukka.rahkonen at maanmittauslaitos.fi>:
>> > Hi,
>> >
>> > 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.
>> >
>> > -Jukka-
>> >
>> >
>> >
>> > -----Alkuperäinen viesti-----
>> > Lähettäjä: mapserver-users
>> > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Andrea Peri
>> > Lähetetty: 2. toukokuuta 2017 15:37
>> > Vastaanottaja: mapserver-users at lists.osgeo.org
>> > Aihe: [mapserver-users] Allow request in http and https
>> >
>> > Hi,
>> > I need to set a mapserver wms to responde both on an http url and on an
>> > https url.
>> >
>> > I try seting two time the
>> > wms_onlineresource value:
>> >
>> > "wms_onlineresource" "http://my-server/...."
>> > "wms_onlineresource" "https://my-server/...."
>> >
>> > But the getcapabilites response oonly the second value.
>> >
>> > Is possible to set two url in the wms_onlineresource ?
>> >
>> > Many thx.
>> >
>> >
>> > --
>> > -----------------
>> > Andrea Peri
>> > . . . . . . . . .
>> > qwerty àèìòù
>> > -----------------
>> > _______________________________________________
>> > mapserver-users mailing list
>> > mapserver-users at lists.osgeo.org
>> > https://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>>
>>
>> --
>> -----------------
>> Andrea Peri
>> . . . . . . . . .
>> qwerty àèìòù
>> -----------------
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
>
> --
> Richard W. Greenwood, PLS
> www.greenwoodmap.com
--
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------
More information about the MapServer-users
mailing list