<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=FR link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi Kristine,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>No problem to do that and it works quite well.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>If you use Mapserver, I suggest to use « type: mapserver » instead of « type: wms ».<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>You’ll find documentation here : <a href="https://mapproxy.org/docs/1.8.0/sources.html#mapserver-label">https://mapproxy.org/docs/1.8.0/sources.html#mapserver-label</a><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>If you activate « services: wms » and use « wms_opts: featureinfo: true » (and « wms_opts:</span> <span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>legendgraphic: true »), GetFeatureInfo (and GetLegendGrpahic) request will automatically be forwarded to Mapserver ; tiles will of course be served by MapProxy cache.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=FR-BE style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Jonathan Beliën<o:p></o:p></span></p><p class=MsoNormal><span lang=FR-BE style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>GEO-6<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>De :</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> MapProxy [mailto:mapproxy-bounces@lists.osgeo.org] <b>De la part de</b> Travis Kirstine<br><b>Envoyé :</b> vendredi 28 octobre 2016 19:54<br><b>À :</b> mapproxy<br><b>Objet :</b> [MapProxy] forwarding requests by type<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Is it possible to forward / proxy WMS requests back to the source WMS service and serve tile requests through your cache? Something like the following <o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal> layers:<o:p></o:p></p></div><div><p class=MsoNormal> - name: roads<o:p></o:p></p></div><div><p class=MsoNormal> title: Roads<o:p></o:p></p></div><div><p class=MsoNormal> sources: [roads_wms]<o:p></o:p></p></div><div><p class=MsoNormal> tile_sources:[roads_cache]<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>sources:<o:p></o:p></p></div><div><p class=MsoNormal> roads_wms:<o:p></o:p></p></div><div><p class=MsoNormal> type: wms<o:p></o:p></p></div><div><p class=MsoNormal> wms_opts:<o:p></o:p></p></div><div><p class=MsoNormal> featureinfo: true<o:p></o:p></p></div><div><p class=MsoNormal> req:<o:p></o:p></p></div><div><p class=MsoNormal> url: <a href="http://mapserver/foo">http://mapserver/foo</a>?<o:p></o:p></p></div><div><p class=MsoNormal> layers: road_layer<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>caches:<o:p></o:p></p></div><div><p class=MsoNormal> roads_cache:<o:p></o:p></p></div><div><p class=MsoNormal> sources: [roads_wms]<o:p></o:p></p></div><div><p class=MsoNormal> grids: ['GLOBAL_MERCATOR']<o:p></o:p></p></div><div><p class=MsoNormal> meta_size: [8, 8]<o:p></o:p></p></div><div><p class=MsoNormal> meta_buffer: 256<o:p></o:p></p></div><div><p class=MsoNormal> cache:<o:p></o:p></p></div><div><p class=MsoNormal> type: file<o:p></o:p></p></div><div><p class=MsoNormal> directory_layout: tms<o:p></o:p></p></div><div><p class=MsoNormal> directory: /mycaches/<o:p></o:p></p></div><div><p class=MsoNormal> <o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Any WTMS TMS request would use the tile_sources but WMS request would use the sources? <o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div></div></div></body></html>