You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason for this is because in the code, currently the logic to get the full path including the prefix is called BEFORE the regex matching logic. See
Description
The docs for key rewrite suggest the following:
Given this config:
Then GET
/file.html
should be rewritten to GET/folder1/redirected/file.html
.HOWEVER, it seems that currently, the source regex MUST account also for the prefix.
So, to redirect from
/file.html
to/folder1/redirected/file.html
, given a bucket prefix/folder1
, we need to do:The reason for this is because in the code, currently the logic to get the full path including the prefix is called BEFORE the regex matching logic. See
s3-proxy/pkg/s3-proxy/bucket/bucket-req-impl.go
Line 131 in 8f1e39b
Describe the solution you'd like
Update the docs to include the correct examples.
The text was updated successfully, but these errors were encountered: