简体   繁体   English

将http更改为https

[英]Change http to https

I am learning to use the Google Apps Engine. 我正在学习使用Google Apps Engine。 My code part as JAVA . 我的代码部分为JAVA In Google Apps Engine I have created one application as http://sampleown.appspot.com . 在Google Apps Engine中,我创建了一个名为http://sampleown.appspot.com应用程序。 How do I change the URL from http://sampleown.appspot.com to https://sampleown.appspot.com and redirect http and to https . 如何将URL从http://sampleown.appspot.com更改为https://sampleown.appspot.com并将http重定向到https How do I use SSL to avoid http connection. 如何使用SSL避免http连接。 I don't know the concepts of SSL and how to use SSL to avoid http connections. 我不知道SSL的概念以及如何使用SSL避免http连接。

Give me Any Idea/Sample Code/Guide Me. 给我任何想法/示例代码/指导我。

Thank You. 谢谢。

https://developers.google.com/appengine/kb/general https://developers.google.com/appengine/kb/general

Does Google App Engine support SSL (HTTPS)? Google App Engine是否支持SSL(HTTPS)?

Google App Engine allows you to serve SSL (HTTPS) traffic through your appspot.com domain. Google App Engine允许您通过appspot.com域提供SSL(HTTPS)流量。 Simply add the 'secure' parameter to your app.yaml handler for the URLs through which you wish to support secure traffic. 只需将“安全”参数添加到您希望支持安全流量的URL的app.yaml处理程序中即可。 For complete information on how to configure your application for secure traffic, please see the docs on app configuration. 有关如何为安全流量配置应用程序的完整信息,请参阅有关应用程序配置的文档。

Java documentation: https://developers.google.com/appengine/docs/java/config/webxml#Secure_URLs Java文档: https : //developers.google.com/appengine/docs/java/config/webxml#Secure_URLs

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM