正确使用Amazon Web Services S3服务器-辅助脚本 [英] Correct Usage of Amazon Web Services S3 for Server - Side Scripting

查看:206
本文介绍了正确使用Amazon Web Services S3服务器-辅助脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Amazon的文档中知道它说S3并非真正用于服务器端脚本,而是使用EC2.我不需要也不会使用EC2提供的操作系统来处理我的服务器调用,这似乎很昂贵,而且似乎有点过头了.基本上,我有几个php文件,用于处理将数据写入RDS数据库并将视频上传到S3.我在S3中拥有php文件并允许静态网络托管,以便我的iPhone api可以调用php脚本,这对我来说是错误的吗?

I know in amazon's documentation it says S3 is not really made for server side scripting but to rather use EC2 instead. I don't need and will not use a operating system that EC2 provides to handle my server calls, it just seems pricey and seems to be an overkill. Basically, I have a couple php files that handle writing data to a RDS database and uploading videos to S3. Is it wrong for me to have my php files in S3 and allow static web hosting so that my iphone api can call the php scripts?

推荐答案

静态虚拟主机意味着...无需执行服务器端脚本.

Static web hosting means just that... no server-side script execution.

您不能在S3上运行PHP脚本.

You cannot run PHP scripts on S3.

您可以在Amazon S3上托管静态网站.在静态网站上,单个网页包含静态内容.它们也可能包含客户端脚本.与之相反,动态网站依赖服务器端处理,包括PHP,JSP或ASP.NET等服务器端脚本.Amazon S3不支持服务器端脚本.

You can host a static website on Amazon S3. On a static website, individual web pages include static content. They may also contain client-side scripts. By contrast, a dynamic website relies on server-side processing, including server-side scripts such as PHP, JSP, or ASP.NET. Amazon S3 does not support server-side scripting.

http://docs.aws.amazon.com/AmazonS3/Latest/dev/WebsiteHosting.html

查看EC2 免费套餐.

这篇关于正确使用Amazon Web Services S3服务器-辅助脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆