Any Mapcache Forwarding Examples?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Any Mapcache Forwarding Examples?

Gad Dox

I've got mapcache setup and seeded, and now I'm trying to get all of the really small zoom level requests to be forward to mapserver. I've tried to use the example provided in the UMS MapServer 7.0.7 docs, and multiple variations, but my Nginx server keeps returning 403s like usual for unseeded tiles.

I've tried:

      <forwarding_rule name="first rule">
     <append_pathinfo>true</append_pathinfo>
        <http>
          <url>http://localhost/wms/?</url>
        </http>
      </forwarding_rule>
 
Under my wms service tags. I've tried without append_pathinfo, without the question mark in url, with the full path to the correct params in url (ex. localhost/wms/?map=mapfile&layer=layer&etc), and renaming the rule to "catch all."

I'm using openlayers as a front-end, and it calls the mapcache cgi with urls like
 
"http://localhost/mapcache/?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=usa&TILED=true&WIDTH=256&HEIGHT=256&CRS=EPSG%3A3857&STYLES=&BBOX=-8453323.832114212%2C4368529.040554393%2C-8448431.862303961%2C4373421.010364644&map=/maps/USA.map"
 
Which return true if the SQLlite binary has the bbox seeded, but 403s on unseeded requests. My backend is Nginx with FastCGI. FCGI has "$path_info" in its params too. There are no discernible errors in either my Nginx logs, my mapfile logs, or my mapcache response headers (only returns "403 forbidden" with "report" error level).
 
If I replace "/mapcache/?" with "/wms/?MAP=/maps/USA.map/&" in the url bar, it returns the proper tile with no errors.
 
Can anyone point me in the right direction to solving this or share their working forwarding_rule snippet?

_______________________________________________
mapserver-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapserver-users