【发布时间】:2014-04-20 23:29:39
【问题描述】:
我有一个在 Amazon EC2 中运行的 Rails 应用程序,并在 S3 中提供文件。
我的问题是:我的所有应用程序都在 http 中正常运行,我想使用 https。但是,前提条件是同一个文件响应 http 和 https。
例如:如果我有一个文件http://domain.s3.amazon.com/file.js,它也应该回复https://domain.s3.amazon.com/file.js。
我的脚本会被其他客户在http和https环境中使用,所以它必须是http和https,否则浏览器会给出这个消息:
[blocked] The page at 'https://mycustomerurl' was loaded over HTTPS, but ran insecure content from 'http://mydomain.com/myfile.js': this content should also be loaded over HTTPS.
我该怎么做?
谢谢
PS:我看过一些示例,但整个应用程序都转到 https,我有这个特定的必要条件
【问题讨论】:
标签: ruby-on-rails ssl https amazon-ec2 amazon-s3