journeymidnight / yig

An open source object storage server with Amazon S3 compatible API
Apache License 2.0
361 stars 86 forks source link

website issues #271

Open brucen1030 opened 4 years ago

brucen1030 commented 4 years ago
  1. All the 4xx error should return error document.
    https://docs.aws.amazon.com/AmazonS3/latest/API/API_ErrorDocument.html
    Now only in 404, yig returns error document and returns hard coded 404.
    It's expected to handle and return proper 4xx error code. To Reproduce Check ReturnWebsiteErrorDocument().

  2. There is no support for header x-amz-website-redirect-location.

  3. In DoRedirect(), yig returns 302 StatusFound, while 301 StatusMovedPermanently is expected.
    https://amazonaws-china.com/cn/premiumsupport/knowledge-center/redirect-domain-route-53/