[MapServer-users] Does mapcache.xml have to have a source, etc.?
Rob Dennett
Rob.Dennett at twdb.texas.gov
Tue Mar 11 09:00:39 PDT 2025
Are all parts of the mapcache.xml required, i.e. source, cache, grid, etc? I have MapServer running as a cgi script on Apache and I want to add MapCache in order to have cached tiles written to and read from an S3 bucket. There are hundreds of .map files on the server machine. The current urls look like
Https://<Https://myMapServer.our>mapserver.our<Https://myMapServer.our>organization.com/?map=/path/to/example.map&otherparams
Do I need to create a mapcache.xml with anything more than a source with http and a cache, a la
<mapcache>
<source name="map-server" type="wms">
<http>
<url>https://mapserver.ourorganization.com</url>
<connection_timeout>30</connection_timeout>
</http>
</source>
<cache name="s3" type="s3">
<url>https://mybucket.s3.amazonaws.com/tiles/{tileset}/{grid}/{z}/{x}/{y}.{ext}</url>
<headers>
<Host>mybucket.s3.amazonaws.com</Host>
</headers>
<id>XXXXXXXXXXXXXXX</id>
<secret>foobaregrwq1235234532/3245234sadgfwevsd</secret>
<region>us-east-1</region>
<operation type="put">
<headers>
<x-amz-storage-class>REDUCED_REDUNDANCY</x-amz-storage-class>
<x-amz-acl>public-read</x-amz-acl>
</headers>
</operation>
</cache>
</mapcache>
?
Thanks,
Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20250311/6bdb2981/attachment-0001.htm>
More information about the MapServer-users
mailing list