<font size=2 face="sans-serif">Setting the default resolution at the map
level in the mapfile would do that?</font>
<br><a href=http://mapserver.org/mapfile/map.html><font size=2 color=blue face="sans-serif">http://mapserver.org/mapfile/map.html</font></a>
<br><font size=3 color=#4f4f4f face="Arial">RESOLUTION</font><font size=3>
</font><font size=2 face="sans-serif">default is 72</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">De :
</font><font size=1 face="sans-serif">Andrea Peri <aperi2007@gmail.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">A :
</font><font size=1 face="sans-serif">"Kralidis, Tom
(EC)" <tom.kralidis@canada.ca></font>
<br><font size=1 color=#5f5f5f face="sans-serif">Cc :
</font><font size=1 face="sans-serif">"Mapserver-Users
\(mapserver-users@lists.osgeo.org\)" <mapserver-users@lists.osgeo.org></font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date :
</font><font size=1 face="sans-serif">2017-05-03 01:47</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Objet :
</font><font size=1 face="sans-serif">Re: [mapserver-users]
Allow request in http and https</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Envoyé par :
</font><font size=1 face="sans-serif">"mapserver-users"
<mapserver-users-bounces@lists.osgeo.org></font>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>Hi Tom,<br>
<br>
thx for hint.<br>
I forgot totally tht the onlineresource mapffile parameter was otionally.<br>
Removeing it , the system work as I need.<br>
Infact the mapserver retrieve the url from the request url.<br>
<br>
Before of all I notice that the mapserver use before the<br>
<br>
"wms_service_onlineresource"<br>
and if it is not available use the<br>
"wms_onlineresource".<br>
<br>
So I remove both and effectivelly the mapserver produce automatically the
url.<br>
It is what I need to support our two kind of portals protocols (http and
https)<br>
<br>
I notice only one residual problem.<br>
<br>
In the wms_onlineresource parameter we put some extra parameter:<br>
<br>
like (for example) the<br>
map_resolution parameter<br>
<br>
"wms_onlineresource"<br>
"</font></tt><a href="http://myserver.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsambamm&map_resolution=91&"><tt><font size=2>http://myserver.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsambamm&map_resolution=91&</font></tt></a><tt><font size=2>"<br>
<br>
we need it to increase the resolution of all the getmap request of the<br>
qgis clients.<br>
removing the wms_onlineresource mean that the getmap requests are all<br>
resolved using the resolution 74dpi and this mean a lower quality<br>
level.<br>
<br>
<br>
The perfect solution so will be to hvae a postfix parameter to define<br>
an append string for the urls.<br>
Something like this:<br>
<br>
"wms_onlineresource_postfix" "&map_resolution=91&"<br>
<br>
to have a result URL with added the string defined in the wms_onlineresource.<br>
<br>
</font></tt><a href="http://myserver.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsambamm&map_resolution=91&"><tt><font size=2>http://myserver.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsambamm&map_resolution=91&</font></tt></a><tt><font size=2><br>
<br>
A.<br>
<br>
<br>
<br>
2017-05-03 1:31 GMT+02:00 Kralidis, Tom (EC) <tom.kralidis@canada.ca>:<br>
> What happens when you do _not_ set ows_onlineresource? I think
MapServer<br>
> will automagically determine the URL?<br>
><br>
><br>
><br>
>> -----Original Message-----<br>
>> From: mapserver-users [</font></tt><a href="mailto:mapserver-users-bounces@lists.osgeo.org"><tt><font size=2>mailto:mapserver-users-bounces@lists.osgeo.org</font></tt></a><tt><font size=2>]
On<br>
>> Behalf Of Andrea Peri<br>
>> Sent: 02 May 2017 18:26<br>
>> To: Richard Greenwood<br>
>> Cc: Mapserver-Users (mapserver-users@lists.osgeo.org)<br>
>> Subject: Re: [mapserver-users] Allow request in http and https<br>
>><br>
>> mmm...<br>
>><br>
>> Perhaps for the resource-online url could be better a setting
like:<br>
>><br>
>> "ows_resourceonline" "auto"<br>
>><br>
>> Where "auto" mean that the mapserver retrieve the url
(and the protocol used)<br>
>> from the request url of the getcapability request.<br>
>><br>
>> This was the better solution.<br>
>> Infact if the client request on an https protocol it will return
a capability files<br>
>> with all the request in https.<br>
>> And if the client request using an http protocol it will return
a capability with<br>
>> http protocol.<br>
>><br>
>><br>
>><br>
>> 2017-05-02 21:14 GMT+02:00 Richard Greenwood<br>
>> <richard.greenwood@gmail.com>:<br>
>> > If you really have to have two different wms_onlineresource
and if<br>
>> > Steve's suggestion to leave out the protocol didn't work,
then you<br>
>> > could create two ows URLs and use the map file's INCLUDE
directive to<br>
>> > refer to the same map file just using different wms_onlineresource
in the<br>
>> two.<br>
>> ><br>
>> > On Tue, May 2, 2017 at 11:14 AM, Andrea Peri <aperi2007@gmail.com><br>
>> wrote:<br>
>> >><br>
>> >> 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) start with a getcapabilities request
and remap<br>
>> >> the getmap using it.<br>
>> >><br>
>> >><br>
>> >> We have many portal using http.<br>
>> >> Now there is a new portal using https, and it should
access to the<br>
>> >> 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>
>> >> <jukka.rahkonen@maanmittauslaitos.fi>:<br>
>> >> > Hi,<br>
>> >> ><br>
>> >> > Actually your Mapserver will respond both to http
and https<br>
>> >> > requests if your network let them both come through.
OnlineResourse<br>
>> >> > has no effect at all for Mapserver, you can set
it to<br>
>> >> > </font></tt><a href=http://foo@bar/><tt><font size=2>http://foo@bar</font></tt></a><tt><font size=2>
if you wish. But WMS clients may have difficulties<br>
>> >> > if they really interpret the GetMap URL and use
it for further<br>
>> >> > operations. QGIS and OpenJUMP have an override for
using the same<br>
>> >> > base URL that was used for doing GetCapabililies
and that might<br>
>> >> > suit for your case. OpenLayers, Leaflet etc. don't
even parse<br>
>> GetCapabilities and </font></tt><a href=http://foo@bar/><tt><font size=2>http://foo@bar</font></tt></a><tt><font size=2>
is totally OK for them.<br>
>> >> ><br>
>> >> > -Jukka-<br>
>> >> ><br>
>> >> ><br>
>> >> ><br>
>> >> > -----Alkuperäinen viesti-----<br>
>> >> > Lähettäjä: mapserver-users<br>
>> >> > [</font></tt><a href="mailto:mapserver-users-bounces@lists.osgeo.org"><tt><font size=2>mailto:mapserver-users-bounces@lists.osgeo.org</font></tt></a><tt><font size=2>]
Puolesta Andrea<br>
>> >> > Peri<br>
>> >> > Lähetetty: 2. toukokuuta 2017 15:37<br>
>> >> > Vastaanottaja: mapserver-users@lists.osgeo.org<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<br>
>> >> > on an https url.<br>
>> >> ><br>
>> >> > I try seting two time the<br>
>> >> > wms_onlineresource value:<br>
>> >> ><br>
>> >> > "wms_onlineresource"
"</font></tt><a href="http://my-server/..."><tt><font size=2>http://my-server/...</font></tt></a><tt><font size=2>."<br>
>> >> > "wms_onlineresource"
"</font></tt><a href="https://my-server/..."><tt><font size=2>https://my-server/...</font></tt></a><tt><font size=2>."<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>
>> >> > _______________________________________________<br>
>> >> > mapserver-users mailing list<br>
>> >> > mapserver-users@lists.osgeo.org<br>
>> >> > </font></tt><a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users"><tt><font size=2>https://lists.osgeo.org/mailman/listinfo/mapserver-users</font></tt></a><tt><font size=2><br>
>> >><br>
>> >><br>
>> >><br>
>> >> --<br>
>> >> -----------------<br>
>> >> Andrea Peri<br>
>> >> . . . . . . . . .<br>
>> >> qwerty àèìòù<br>
>> >> -----------------<br>
>> >> _______________________________________________<br>
>> >> mapserver-users mailing list<br>
>> >> mapserver-users@lists.osgeo.org<br>
>> >> </font></tt><a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users"><tt><font size=2>https://lists.osgeo.org/mailman/listinfo/mapserver-users</font></tt></a><tt><font size=2><br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> > --<br>
>> > Richard W. Greenwood, PLS<br>
>> > </font></tt><a href=www.greenwoodmap.com><tt><font size=2>www.greenwoodmap.com</font></tt></a><tt><font size=2><br>
>><br>
>><br>
>><br>
>> --<br>
>> -----------------<br>
>> Andrea Peri<br>
>> . . . . . . . . .<br>
>> qwerty àèìòù<br>
>> -----------------<br>
>> _______________________________________________<br>
>> mapserver-users mailing list<br>
>> mapserver-users@lists.osgeo.org<br>
>> </font></tt><a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users"><tt><font size=2>https://lists.osgeo.org/mailman/listinfo/mapserver-users</font></tt></a><tt><font size=2><br>
<br>
<br>
<br>
-- <br>
-----------------<br>
Andrea Peri<br>
. . . . . . . . .<br>
qwerty àèìòù<br>
-----------------<br>
_______________________________________________<br>
mapserver-users mailing list<br>
mapserver-users@lists.osgeo.org<br>
</font></tt><a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users"><tt><font size=2>https://lists.osgeo.org/mailman/listinfo/mapserver-users</font></tt></a>
<br>