maptiler/tileserver-php

Couldn't load WMTS correctly in QGIS

bolshoydi opened this issue · 1 comments

Tile server works fine. I tried WMTS server in arcgis, also tried to create leaflet page- and it worked. But when i try to load WMTS in QGIS, it zooms to correct extent of image, but the blank map is appeared. And the log of qgis gives broken links like http://192.168.255.162/wmts/test/GoogleMapsCompatible/13/5412/2450.png . in browser this link throws error "The requested URL /wmts/test/GoogleMapsCompatible/13/5412/2450.png was not found on this server. "
Arcgis sees 2 TileMatrixes:GoogleMapsCompatible and *_WGS 84 *_and i used in arcgis the second one, but qgis sees only googles one. Why tileserver uses GoogleMapsCompatible instead of WGS84 TileMatrix set? Also the link recomended by the server looks like http://192.168.255.162/tileserver.php?/wmts but QGIS doesn't response it as WMTS server, but if I drop the sign "?" (http://192.168.255.162/tileserver.php/wmts) or add "?" in the end of link (http://192.168.255.162/tileserver.php/wmts?) it works (i mean qgis sees images on server). I'm using QGIS 2.12
P.S. excuse me for my awful English

It was not tilserver error, it was wrong Apaches config. In /etc/apache2/apache2.conf on root derictory

<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
and
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
The option "AllowOverride" sould be set to "All"