Three things come to my mind:
1) Did you check if your Apache or NGINX respectively has the module installed and active?
2) You do not have credentials in your second S3 URL example. This may be an issue.
3) The structure in the doc's is different:
```
RewriteEngine on
RewriteRule wmsmap?(.*) /cgi-bin/mapserv?map=/home/www/mapserverstuff/mymapfile.map&$1
```
I don't use this method myself but you may want to try using exactly the same replacement structure?
As said before, you could als use an Environment variable.
Cheers Lars

Am 24.10.22 um 11:12 schrieb Marcin Niemyjski via MapServer-users:
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:


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


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

Attachment: OpenPGP_0x667E0B7B73E250FB.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

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

Reply via email to