<div dir="ltr">Hi,<div><br></div><div>It's a server IP address. The web site hosted on that server can be accessed well. And adding the service and request parameter to the URL works too. What I'm wondering is that why I can't access <a href="http://192.168.56.101/mapcache/" target="_blank" style="font-size:13px;font-family:arial,sans-serif">http://192.168.56.101/mapcache/</a>demo/ as the document says.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 4, 2013 at 12:40 PM, Rahkonen Jukka <span dir="ltr"><<a href="mailto:jukka.rahkonen@mmmtike.fi" target="_blank">jukka.rahkonen@mmmtike.fi</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
In the Mapcache documentation the service in installed on the local computer so that after installation the demo page is found from address <a href="http://localhost/mapcache/demo/" target="_blank">http://localhost/mapcache/demo/</a> which is the same as <a href="http://127.0.0.1/mapcache/demo/" target="_blank">http://127.0.0.1/mapcache/demo/</a><br>

<br>
I saw from your previous mail that you were using another IP address for contacting your Mapcache, namely<br>
<a href="http://192.168.56.101/mapcache/" target="_blank">http://192.168.56.101/mapcache/</a> so I used that in my address. I do not know if that address is also your own computer or some other machine. If it is the same computer where your keyboard is connected then localhost and 127.0.0.1 addresses should work as well.<br>

<br>
I have installed my Mapcache into port 8060 of my computer so for me the link to the list of demos is<br>
<a href="http://127.0.0.1:8060/mapcache/demo/" target="_blank">http://127.0.0.1:8060/mapcache/demo/</a> and in a browser it shows the page like this<br>
<a href="http://latuviitta.org/documents/mapcache_demo_start_page.png" target="_blank">http://latuviitta.org/documents/mapcache_demo_start_page.png</a><br>
<br>
-Jukka Rahkonen-<br>
<br>
<br>
________________________________<br>
<div class="im">Jackey Cheung wrote:<br>
<br>
> Dear Rahkonen,<br>
<br>
> Thanks for your reply. It worked.<br>
<br>
> However, I was following the online documentation on installing mapcache. The document says (<a href="http://mapserver.org/mapcache/install.html#table-of-contents" target="_blank">http://mapserver.org/mapcache/install.html#table-of-contents</a>):<br>

> * In your web browser, goto the local MapCache demo page: <a href="http://127.0.0.1/mapcache/demo/" target="_blank">http://127.0.0.1/mapcache/demo/</a> You should see a clickable list of demo links<br>
<br>
> It that I've misunderstood?<br>
<br>
<br>
</div><div class="im">On Fri, May 31, 2013 at 12:49 PM, Rahkonen Jukka <<a href="mailto:jukka.rahkonen@mmmtike.fi">jukka.rahkonen@mmmtike.fi</a><mailto:<a href="mailto:jukka.rahkonen@mmmtike.fi">jukka.rahkonen@mmmtike.fi</a>>> wrote:<br>

Hi,<br>
<br>
Great, then you have made it.  The message means that your URL connects Mapcache as WMS service but the message is missing the compulsory WMS parameters SERVICE and REQUEST because you only did<br>
<br>
<a href="http://192.168.56.101/mapcache/" target="_blank">http://192.168.56.101/mapcache/</a><br>
<br>
You will see the WMS 1.1.0 capabilities document by using<br>
<a href="http://192.168.56.101/mapcache?service=wms&version=1.1.1&request=GetCapabilities" target="_blank">http://192.168.56.101/mapcache?service=wms&version=1.1.1&request=GetCapabilities</a><br>
and you should be able to use your service and see the map layers as maps with some WMS client like OpenJUMP or QGis. If the demo is installed you can also test with <a href="http://192.168.56.101/mapcache/demo/wms" target="_blank">http://192.168.56.101/mapcache/demo/wms</a><br>

<br>
<br>
-Jukka Rahkonen-<br>
<br>
<br>
<br>
<br>
<br>
________________________________<br>
Jackey Cheung wrote<br>
<br>
> I'ved added the PATH_INFO to nginx location block, and using the sample mapcache.xml from the source package. Now it always returns<br>
<br>
> received wms with no service and request<br>
<br>
<br>
</div><div class="im">On Tue, May 28, 2013 at 2:45 PM, Eichner, Andreas - SID-NLKM <<a href="mailto:Andreas.Eichner@sid.sachsen.de">Andreas.Eichner@sid.sachsen.de</a><mailto:<a href="mailto:Andreas.Eichner@sid.sachsen.de">Andreas.Eichner@sid.sachsen.de</a>><mailto:<a href="mailto:Andreas.Eichner@sid.sachsen.de">Andreas.Eichner@sid.sachsen.de</a><mailto:<a href="mailto:Andreas.Eichner@sid.sachsen.de">Andreas.Eichner@sid.sachsen.de</a>>>> wrote:<br>

<br>
You need to pass the path_info from nginx to mapcache. Use something like<br>
<br>
  fastcgi_param PATH_INFO $fastcgi_path_info;<br>
<br>
in your location block.<br>
<br>
> -----Ursprüngliche Nachricht-----<br>
> Von: <a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a><mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>><mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a><mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>>><br>

</div>> [mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a><mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>><mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a><mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>>>] Im Auftrag<br>

<div class="im">> von Jackey Cheung<br>
> Gesendet: Dienstag, 28. Mai 2013 04:12<br>
</div>> An: <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><mailto:<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>><mailto:<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><mailto:<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>>><br>

<div><div class="h5">> Betreff: [mapserver-users] MapCache "missing a service" error<br>
><br>
> Hi,<br>
><br>
> I'm trying to deploy a MapCache server. It compiles OK, but I<br>
> can't tell whether everything is working fine, since I can't<br>
> see any output from the server (command line and HTTP response, etc.)<br>
><br>
> I've write up a config xml as below:<br>
><br>
> <?xml version="1.0" encoding="UTF-8"?><br>
> <mapcache><br>
>   <cache name="test_cache" type="disk"><br>
>     <base>/tmp/mapcache</base><br>
>     <symlink_blank /><br>
>   </cache><br>
><br>
>   <source name="test_lands" type="wms"><br>
>     <getmap><br>
>       <params><br>
>          <FORMAT>image/png</FORMAT><br>
>          <LAYERS>BLD_BLDG</LAYERS><br>
>       </params><br>
>     </getmap><br>
>     <http><br>
>       <url><a href="http://localhost/map/" target="_blank">http://localhost/map/</a></url><br>
>       <headers><br>
>         <User-Agent>mapcache</User-Agent><br>
>       </headers><br>
>       <connection_timeout>30</connection_timeout><br>
>     </http><br>
>   </source><br>
><br>
>   <format name="PNG" type ="PNG"><br>
>     <compression>fast</compression><br>
>   </format><br>
>   <default_format>PNG</default_format><br>
><br>
>   <tileset name="test_tileset"><br>
>     <source>test_lands</source><br>
>     <cache>test_cache</cache><br>
>     <grid restricted_extent="113.816929 22.135340 114.504470<br>
> 22.567942"><br>
>       WGS84<br>
>     </grid><br>
>     <metadata><br>
>       <title>test web map.</title><br>
>       <abstract>Powered by MapKing.</abstract><br>
>     </metadata><br>
>     <format>PNG</format><br>
>     <metatile>10 10</metatile><br>
>     <metabuffer>10</metabuffer><br>
>   </tileset><br>
><br>
>   <service type="wms" enabled="true"><br>
>     <full_wms>assemble</full_wms><br>
>     <resample_mode>bilinear</resample_mode><br>
>     <format>PNG</format><br>
>     <maxsize>4096</maxsize><br>
>   </service><br>
>   <service type="wmts" enabled="false"/><br>
>   <service type="tms" enabled="false"/><br>
>   <service type="kml" enabled="false"/><br>
>   <service type="gmaps" enabled="false"/><br>
>   <service type="ve" enabled="false"/><br>
>   <service type="demo" enabled="false"/><br>
><br>
>   <errors>report</errors><br>
>   <lock_dir>/tmp/mapcache/lock</lock_dir><br>
>   <threaded_fetching>true</threaded_fetching><br>
>   <log_level>info</log_level><br>
>   <auto_reload>true</auto_reload><br>
> </mapcache><br>
><br>
><br>
> I use spawn-fcgi to start the server:<br>
> spawn-fcgi -M 666 -s /var/run/mapcache.sock -n -u nginx -g<br>
> nginx -U nginx -G nginx -P /var/run/mapcache.pid --<br>
> /usr/local/bin/mapcache<br>
><br>
> The server seems to be running, since it doesn't return to<br>
> the command prompt. When I use browser to open<br>
> "<a href="http://192.168.56.101/mapcache/" target="_blank">http://192.168.56.101/mapcache/</a>", the first request (the<br>
> exact first request to the newly started server process) returns:<br>
> tileset "test_tileset" references grid "<br>
>       WGS84<br>
>     ", but it is not configured<br>
><br>
> Then all subsequent requests returns "missing a service" error.<br>
> I've tried adding a WGS84 grid to the xml, but that produces<br>
> duplicate declaration error. I've also tried using the<br>
> mapcache.xml from source package, the same "missing a<br>
> service" error occurs.<br>
> What's wrong?<br>
><br>
<br>
_______________________________________________<br>
mapserver-users mailing list<br>
</div></div><a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><mailto:<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br>
</blockquote></div><br></div>