开发者

Rewriting Images to S3

开发者 https://www.devze.com 2023-04-11 23:37 出处:网络
I\'m looking for a way to rewrite images to be served from amazon S3 we cannot rewrite them based folder because we have following patter

I'm looking for a way to rewrite images to be served from amazon S3

we cannot rewrite them based folder because we have following patter

/product/name -> for product url
/product/name.jpg -> product image
/store/name -> store url

/store/name.jpg -> store image

开发者_Go百科what would be the best way to rewrite images

/product/name.jpg -> http://amazonbucket/product/name.jpg

thank you


One of the things you can do is to assign a CNAME to your Amazon S3 domain. In this case you will have to name your bucket something like images.yourdomain.com and you will be able to serve your images from http://images.yourdomain.com/product/name.jpg

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号