使用云存储进行 404 重定向

发布于 2024-07-15 10:59:14 字数 244 浏览 7 评论 0原文

我希望能向有使用 Amazon S3 等服务经验的人提出这个问题。 在我的网站上,我们有一个专用的图像服务器。 在这个服务器上,我们通过 Apapche 进行自动 404 重定向,这样,如果用户尝试访问不存在的图像,他们会看到一个时髦的“图像不可用”图像。

我们正在寻求将这些图像的托管转移到云存储解决方案(S3 或 Rackspace 的 CloudFiles),我想知道是否有人在云存储服务上成功复制了这种行为,如果是的话,他们是如何做到的。

I'm hoping to reach someone with some experience using a service like Amazon's S3 with this question. On my site we have a dedicated image server. And on this server, we have an automatic 404 redirect through Apapche so that, if a user tries to access an image that doesn't exist, they'll see a snazzy "Image Not Available" image.

We're looking to move the hosting of these images to a cloud storage solution (S3 or Rackspace's CloudFiles), and I'm wondering if anyone's had any success replicating this behavior on a cloud storage service and if so how they did it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦过后 2024-07-22 10:59:14

Amazon 实例一旦启动并运行,就像普通的托管服务器实例一样,因此您的 Apache 配置可能与您当前拥有的配置相同。

您唯一的问题是在哪里存储图像。 新的 Amazon Elastic Block Store 可以轻松安装基于 S3 支持的数据的驱动器。 您可以将所有图像存储在这样的卷上,并将其与 Apache 实例一起使用。

THe Amazon instances are just like normal hosted server instances once they are up and running so your Apache configuration could assumedly be identical to what you currently have.

Your only issue will be where to store the images. The new Amazon Elastic Block Store makes it easy to mount a drive based on S3 backed data. You could store all your images on such a volume and use it with your Apache instance.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文