<div dir="ltr">I'ved added the PATH_INFO to nginx location block, and using the sample mapcache.xml from the source package. Now it always returns<div><pre>received wms with no service and request</pre></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Tue, May 28, 2013 at 2:45 PM, Eichner, Andreas - SID-NLKM <span dir="ltr"><<a href="mailto:Andreas.Eichner@sid.sachsen.de" target="_blank">Andreas.Eichner@sid.sachsen.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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><br>
> [mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>] Im Auftrag<br>
> von Jackey Cheung<br>
> Gesendet: Dienstag, 28. Mai 2013 04:12<br>
> An: <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
> Betreff: [mapserver-users] MapCache "missing a service" error<br>
<div class="HOEnZb"><div class="h5">><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>
</div></div></blockquote></div><br></div>