<div dir="ltr">What is the link to access the tiles in web browser if I used your .xml as the configuration? Is it still <a href="http://example.com/mapcache/demo" target="_blank">http://example.com/mapcache/demo</a> or something else. <br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, May 25, 2013 at 7:47 PM, Stephen Woodbridge <span dir="ltr"><<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">So the way this works is:<br>
<br>
browser <----> mapcache <----> mapserver_wms<br>
<br>
So look at the demo page if you have mapcache.xml configured then you should see a simple OpenLayers application that pulls tiles from mapcache.<br>
<br>
your mapcache.xml needs look something like this. The referrences in the source block are explicit references to names in my mapfile. Obviously parameter values need to be change for your server and mapfile.<br>
<br>
-Steve<br>
<br>
<?xml version="1.0" encoding="UTF-8"?><br>
<mapcache><br>
  <metadata><br>
    <title>iMaptools mapcache service</title><br>
    <abstract>Contains various services for iMaptools maps</abstract><br>
  </metadata><br>
<br>
  <cache name="disk" type="disk"><br>
    <base>/u/mapcache</base><br>
    <symlink_blank/><br>
  </cache><br>
<br>
  <source name="tiger2011" type="wms"><br>
    <getmap><br>
      <params><br>
        <FORMAT>image/png</FORMAT><br>
        <MAP_IMAGETYPE>agg_qn</MAP_<u></u>IMAGETYPE><br>
        <LAYERS>Tiger_2011</LAYERS><br>
        <MAP>/u/data/tiger2011-maps/<u></u>tiger2011-mc.map</MAP><br>
      </params><br>
    </getmap><br>
<br>
    <http><br>
      <url><a href="http://localhost/cgi-bin/mapserv-60" target="_blank">http://localhost/cgi-bin/<u></u>mapserv-60</a></url><br>
    </http><br>
  </source><br>
<br>
  <format name="PNGQ_FAST" type="PNG"><br>
    <compression>fast</<u></u>compression><br>
    <colors>256</colors><br>
  </format><br>
<br>
  <tileset name="tiger-base"><br>
    <source>tiger2011</source><br>
    <cache>disk</cache><br>
    <grid>WGS84</grid><br>
    <grid>g</grid><br>
    <format>PNGQ_FAST</format><br>
    <metatile>5 5</metatile><br>
    <!-- metabuffer must be the abs() of what is in the mapfile --><br>
    <metabuffer>20</metabuffer><br>
    <expires>3600</expires><br>
  </tileset><br>
<br>
  <default_format>PNGQ_FAST</<u></u>default_format><br>
<br>
  <service type="wms" enabled="true"><br>
    <full_wms>assemble</full_wms><br>
    <resample_mode>bilinear</<u></u>resample_mode><br>
    <format>PNGQ_FAST</format><br>
    <maxsize>4096</maxsize><br>
  </service><br>
  <service type="wmts" enabled="true"/><br>
  <service type="tms" enabled="true"/><br>
  <service type="kml" enabled="true"/><br>
  <service type="gmaps" enabled="true"/><br>
  <service type="ve" enabled="true"/><br>
  <service type="demo" enabled="true"/><br>
<br>
  <errors>report</errors><br>
  <lock_dir>/tmp</lock_dir><br>
<br>
</mapcache><div class="im"><br>
<br>
<br>
On 5/25/2013 9:47 AM, Hishan Melanga wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
ok. Now I have <a href="http://example.com/mapcache/demo" target="_blank">http://example.com/mapcache/<u></u>demo</a> working. But how can I<br>
get my mapserver's wms connect to it.<br>
<br>
<br>
On Sat, May 25, 2013 at 10:42 AM, Hishan Melanga <<a href="mailto:hishanm@gmail.com" target="_blank">hishanm@gmail.com</a><br></div><div class="im">
<mailto:<a href="mailto:hishanm@gmail.com" target="_blank">hishanm@gmail.com</a>>> wrote:<br>
<br>
    Thanks. I installed mapcahe and started to learn about the xml<br>
    configuration file. Reading<br>
    <a href="http://mapserver.org/mapcache/config.html" target="_blank">http://mapserver.org/mapcache/<u></u>config.html</a> as a start. Hope it is the<br>
    first thing that I should do.<br>
<br>
<br>
    On Sat, May 25, 2013 at 8:07 AM, Stephen Woodbridge<br></div><div class="im">
    <<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a> <mailto:<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.<u></u>com</a>>> wrote:<br>
<br>
        On 5/24/2013 10:06 PM, Hishan Melanga wrote:<br>
<br>
            I have a working mapserver and I can view my map using<br></div>
            <a href="http://localhost/cgi-bin/__mapserv?map=/path/to/map&mode=__browse&template=openlayers&__layers=all" target="_blank">http://localhost/cgi-bin/__<u></u>mapserv?map=/path/to/map&mode=<u></u>__browse&template=openlayers&_<u></u>_layers=all</a><br>

            <<a href="http://localhost/cgi-bin/mapserv?map=/path/to/map&mode=browse&template=openlayers&layers=all" target="_blank">http://localhost/cgi-bin/<u></u>mapserv?map=/path/to/map&mode=<u></u>browse&template=openlayers&<u></u>layers=all</a>>.<div class="im">
<br>
            Now I want to give out those data to public as tiles giving<br>
            a single URL<br></div>
            such as <a href="http://tile.myserver.org" target="_blank">tile.myserver.org</a> <<a href="http://tile.myserver.org" target="_blank">http://tile.myserver.org</a>><div class="im"><br>
            <<a href="http://tile.myproxy.org/" target="_blank">http://tile.myproxy.org/</a>>. How can I achieve<br>
<br>
            this using Mapserver? What is the place to start? What<br>
            tutorials I have<br>
            to read? I've read that Mapserver has a tile mode<br></div>
            <<a href="http://mapserver.org/output/__tile_mode.html" target="_blank">http://mapserver.org/output/_<u></u>_tile_mode.html</a><div class="im"><br>
            <<a href="http://mapserver.org/output/tile_mode.html" target="_blank">http://mapserver.org/output/<u></u>tile_mode.html</a>>>.<br>
            Thanks in advance.<br>
<br>
<br>
        mapcache it the tile server for mapserver. So you will want to<br>
        look at that. The basic scenario is this:<br>
<br>
        1. setup mapserver as a WMS server<br>
        2. build and install mapcache as an apache module<br>
        3. setup a mapcache.xml to describe you WMS server, and your cache.<br>
            make sure you configure the demo service initially for testing<br>
            you can disable it later if you want<br>
        4. restart apache<br></div>
        5. <a href="http://example.com/mapcache/__demo" target="_blank">http://example.com/mapcache/__<u></u>demo</a><div class="im"><br>
        <<a href="http://example.com/mapcache/demo" target="_blank">http://example.com/mapcache/<u></u>demo</a>><br>
<br>
        whenever you change your mapcache.xml you need to start apache<br>
        so it reads your changes.<br>
<br>
        -Steve W<br></div>
        ______________________________<u></u>___________________<br>
        mapserver-users mailing list<br>
        mapserver-users@lists.osgeo.__<u></u>org<br>
        <mailto:<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.<u></u>osgeo.org</a>><br>
        <a href="http://lists.osgeo.org/__mailman/listinfo/mapserver-__users" target="_blank">http://lists.osgeo.org/__<u></u>mailman/listinfo/mapserver-__<u></u>users</a><br>
        <<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/mapserver-<u></u>users</a>><br>
<br>
<br>
<br>
<br>
    --<br>
    හිෂාන් මෙලංග | Hishan Melanga <<a href="http://hishanmelanga.blogspot.com/" target="_blank">http://hishanmelanga.<u></u>blogspot.com/</a>><br>
<br>
<br>
<br><span class="HOEnZb"><font color="#888888">
<br>
--<br>
හිෂාන් මෙලංග | Hishan Melanga <<a href="http://hishanmelanga.blogspot.com/" target="_blank">http://hishanmelanga.<u></u>blogspot.com/</a>></font></span><div class="im"><br>
<br>
<br>
______________________________<u></u>_________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.<u></u>org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/mapserver-<u></u>users</a><br>
<br>
</div></blockquote><div class="HOEnZb"><div class="h5">
<br>
______________________________<u></u>_________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.<u></u>org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/mapserver-<u></u>users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><a href="http://hishanmelanga.blogspot.com/" target="_blank">හිෂාන් මෙලංග | Hishan Melanga</a><br>
</div>