http - zf2 骨架应用程序,将所有内容转换为 https

标签 http security https zend-framework2

我想知道是否有一种快速的方法可以将现有的基于 zf2 骨架的 zend framework 2 应用程序转换为完整的 https?因为一切都在 http 上,包括 ajax 请求

最佳答案

执行此操作的最简单和最安全的方法之一是将 http 的所有传入流量/请求永久重定向到 https

您可以通过将重定向规则添加到端口 80 的虚拟主机来实现。检查 this answer on security.stackexchange.com有关如何执行此操作的详细信息。

您应该考虑引用 security.stackexchange.com 以获取有关此主题的帖子。这个 StackExchange 网站不适合回答这类安全问题。

关于http - zf2 骨架应用程序,将所有内容转换为 https,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41812337/

相关文章:

java - 出错时从 jersey Chunked 响应返回 HTTP 代码

升级到 HTTPS 后的 CSS 错误

c++ - 从客户端程序嗅探 HTTPS 流量

python - 尽管超时,urllib2.urlopen 将永远挂起

检测到 Android root?立即卸载应用程序

javascript - 从 JavaScript 使用参数调用 Controller 操作是否安全?

node.js - 如何使用node.js库表单数据创建https帖子?

http - OPLON LBL ADC : is it possible to use a single VIRTUAL DOMAIN to manage all the incoming requests for all the subdomains?

android - 从字节流在 Android 中播放视频

security - Node.js Express 框架安全问题