> The demo page seems like a very normal html page. Perhaps > your hosted server has troubles with finding the html code or > something. Unfortunately I am not expert on this area.
You surely need not be. Solution might obviously found on this line: <service type="demo" enabled="false"/> > > > > -Jukka- > > > > Jackey Cheung wrote > > > > Hi, > > > > 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 http://192.168.56.101/mapcache/ > <http://192.168.56.101/mapcache/> demo/ as the document says. > > > > On Tue, Jun 4, 2013 at 12:40 PM, Rahkonen Jukka > <jukka.rahko...@mmmtike.fi> wrote: > > Hi, > > In the Mapcache documentation the service in installed on the > local computer so that after installation the demo page is > found from address http://localhost/mapcache/demo/ which is > the same as http://127.0.0.1/mapcache/demo/ > > I saw from your previous mail that you were using another IP > address for contacting your Mapcache, namely > http://192.168.56.101/mapcache/ 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. > > I have installed my Mapcache into port 8060 of my computer so > for me the link to the list of demos is > http://127.0.0.1:8060/mapcache/demo/ and in a browser it > shows the page like this > http://latuviitta.org/documents/mapcache_demo_start_page.png > > -Jukka Rahkonen- > > > ________________________________ > > Jackey Cheung wrote: > > > Dear Rahkonen, > > > Thanks for your reply. It worked. > > > However, I was following the online documentation on > installing mapcache. The document says > (http://mapserver.org/mapcache/install.html#table-of-contents): > > * In your web browser, goto the local MapCache demo page: > http://127.0.0.1/mapcache/demo/ > <http://127.0.0.1/mapcache/demo/> You should see a clickable > list of demo links > > > It that I've misunderstood? > > > > On Fri, May 31, 2013 at 12:49 PM, Rahkonen Jukka > <jukka.rahko...@mmmtike.fi<mailto:jukka.rahko...@mmmtike.fi>> wrote: > Hi, > > 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 > > http://192.168.56.101/mapcache/ > > You will see the WMS 1.1.0 capabilities document by using > http://192.168.56.101/mapcache?service=wms&version=1.1.1&reque st=GetCapabilities > 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 > http://192.168.56.101/mapcache/demo/wms > > > -Jukka Rahkonen- > > > > > > ________________________________ > Jackey Cheung wrote > > > I'ved added the PATH_INFO to nginx location block, and > using the sample mapcache.xml from the source package. Now it > always returns > > > received wms with no service and request > > > > On Tue, May 28, 2013 at 2:45 PM, Eichner, Andreas - SID-NLKM > <andreas.eich...@sid.sachsen.de<mailto:andreas.eich...@sid.sac > hsen.de><mailto:andreas.eich...@sid.sachsen.de<mailto:Andreas. > eich...@sid.sachsen.de>>> wrote: > > You need to pass the path_info from nginx to mapcache. Use > something like > > fastcgi_param PATH_INFO $fastcgi_path_info; > > in your location block. > > > -----Ursprüngliche Nachricht----- > > Von: > mapserver-users-boun...@lists.osgeo.org<mailto:mapserver-users > -boun...@lists.osgeo.org><mailto:mapserver-users-bounces@lists .osgeo.org<mailto:mapserver-users-boun...@lists.osgeo.org>> > > > > [mailto:mapserver-users-boun...@lists.osgeo.org<mailto:mapserv er-users-boun...@lists.osgeo.org><mailto:mapserver-users-> boun...@lists.osgeo.org<mailto:mapserver-users-bounces@lists.o sgeo.org>>] Im Auftrag > > > von Jackey Cheung > > Gesendet: Dienstag, 28. Mai 2013 04:12 > > > An: > mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.o sgeo.org><mailto:mapserver-> us...@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>> > > > Betreff: [mapserver-users] MapCache "missing a service" error > > > > Hi, > > > > I'm trying to deploy a MapCache server. It compiles OK, but I > > can't tell whether everything is working fine, since I can't > > see any output from the server (command line and HTTP > response, etc.) > > > > I've write up a config xml as below: > > > > <?xml version="1.0" encoding="UTF-8"?> > > <mapcache> > > <cache name="test_cache" type="disk"> > > <base>/tmp/mapcache</base> > > <symlink_blank /> > > </cache> > > > > <source name="test_lands" type="wms"> > > <getmap> > > <params> > > <FORMAT>image/png</FORMAT> > > <LAYERS>BLD_BLDG</LAYERS> > > </params> > > </getmap> > > <http> > > <url>http://localhost/map/</url> > > <headers> > > <User-Agent>mapcache</User-Agent> > > </headers> > > <connection_timeout>30</connection_timeout> > > </http> > > </source> > > > > <format name="PNG" type ="PNG"> > > <compression>fast</compression> > > </format> > > <default_format>PNG</default_format> > > > > <tileset name="test_tileset"> > > <source>test_lands</source> > > <cache>test_cache</cache> > > <grid restricted_extent="113.816929 22.135340 114.504470 > > 22.567942"> > > WGS84 > > </grid> > > <metadata> > > <title>test web map.</title> > > <abstract>Powered by MapKing.</abstract> > > </metadata> > > <format>PNG</format> > > <metatile>10 10</metatile> > > <metabuffer>10</metabuffer> > > </tileset> > > > > <service type="wms" enabled="true"> > > <full_wms>assemble</full_wms> > > <resample_mode>bilinear</resample_mode> > > <format>PNG</format> > > <maxsize>4096</maxsize> > > </service> > > <service type="wmts" enabled="false"/> > > <service type="tms" enabled="false"/> > > <service type="kml" enabled="false"/> > > <service type="gmaps" enabled="false"/> > > <service type="ve" enabled="false"/> > > <service type="demo" enabled="false"/> > > > > <errors>report</errors> > > <lock_dir>/tmp/mapcache/lock</lock_dir> > > <threaded_fetching>true</threaded_fetching> > > <log_level>info</log_level> > > <auto_reload>true</auto_reload> > > </mapcache> > > > > > > I use spawn-fcgi to start the server: > > spawn-fcgi -M 666 -s /var/run/mapcache.sock -n -u nginx -g > > nginx -U nginx -G nginx -P /var/run/mapcache.pid -- > > /usr/local/bin/mapcache > > > > The server seems to be running, since it doesn't return to > > the command prompt. When I use browser to open > > "http://192.168.56.101/mapcache/", the first request (the > > exact first request to the newly started server process) returns: > > tileset "test_tileset" references grid " > > WGS84 > > ", but it is not configured > > > > Then all subsequent requests returns "missing a service" error. > > I've tried adding a WGS84 grid to the xml, but that produces > > duplicate declaration error. I've also tried using the > > mapcache.xml from source package, the same "missing a > > service" error occurs. > > What's wrong? > > > > _______________________________________________ > mapserver-users mailing list > > mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.o sgeo.org> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users