tomcat - 在 CDN、Web 服务器或代码级别在我的网站上强制使用 SSL 是否最佳?

标签 tomcat ssl redirect cdn

我们正在实现重定向规则以强制我们的流量使用 SSL。我想知道强制所有流量使用 SSL 的最佳方式是什么?我们的架构有一个 CDN(Akamai),它位于 ELB 之前,位于我们的 Web 应用程序服务器(tomcat)之前。

最佳答案

来自 https://serverfault.com/a/887312/92022 :

Do it in Akamai. The closer to the edge your redirect takes place, the faster the request response time will be for your users.

https://blogs.akamai.com/2016/02/redirecting-on-the-edge.html

If you're confident that you can serve your entire domain over HTTPS now and into the future then you should also look into enabling HSTS. This will mean only first time visitors ever get the HTTP->HTTPS redirect, then the HSTS header gets cached in the browser and thereafter all requests are automatically upgraded to HTTPS by the browser before the request is initiated.

https://blogs.akamai.com/2016/04/ensure-secure-browsing-with-HTTP-strict-transport-security-HSTS.html

https://jackiechen.org/2017/11/13/enable-hsts-in-akamai/

关于tomcat - 在 CDN、Web 服务器或代码级别在我的网站上强制使用 SSL 是否最佳?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47637475/

相关文章:

ssl - 在 Helm 和 Tiller 之间设置 SSL

.htaccess - 从网站上的特定文件夹中删除 HTTPS

ruby-on-rails - 使用 Rails 登录重定向后无法理解 Devise

javascript - 在 Javascript 中重定向到新页面时出现问题

java - 如何增加 Tomcat Java header 大小限制

java - 什么是 Enterprise Java Bean?

jquery - 我可以在 https 页面中使用 jquery.form.js

ruby-on-rails - 如何让我的重定向包含名称而不是 ID?

java - 文件没有从 Apache Web 服务器传输到 Tomcat 应用程序服务器

java - 不使用网络在本地连接到 Apache Tomcat