[MapServer-users] Redirecting to s3 via apache2 redirect/alias/proxy

Marcin Niemyjski mniemyjski at cloudferro.com
Mon Oct 24 02:12:45 PDT 2022


Hello,

coming back to you with one more question about s3, namely:

As I wrote before - I want to keep my mapfiles on buckets but I also want to access them without need to mount buckets to VMs, so I've came up with this:

https://httpd.apache.org/docs/2.4/rewrite/flags.html#flag_p
https://mapserver.org/ogc/wms_server.html#changing-the-online-resource-url

generaly I want to do this:

ProxyPass        /martest/ https://s3.amazon.com/Bucket/Key
ProxyPassReverse /martest/ https://s3.amazon.com/Bucket/Key

or

RewriteEngine on
RewriteRule /martest/ https://s3.amazon.com/Bucket/

so, while using WMS online resource url https://www.lpis.pl/cgi-bin/mapserv?map=/martest/jrc.map i would connect to mapfile on s3.

But it doesn't seem to be working. Is this even possible to connect mapserver and s3 this way?

As always thank you for your help and time,
Marcin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20221024/1bc65c81/attachment.htm>


More information about the MapServer-users mailing list