如何配置 Yii Framework 使用 HTTPS? [英] How to configure Yii Framework to use HTTPS?

查看:44
本文介绍了如何配置 Yii Framework 使用 HTTPS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚为我的网站 linkbook.co 购买了一个 SSL 证书

I just bought a SSL certificate for my website linkbook.co;

我的网站是使用Yii Framework开发的;

My website is developed using the Yii Framework;

我是否必须将应用程序配置为使用 HTTPS 还是服务器会为我执行此操作?

Do I have to configure the App to use HTTPS or will the server do this for me?

如果我必须配置应用程序,我如何告诉 widgets、clistviews、portlet 等使用 HTTPS 协议?

If I have to configure the App, how do I tell to the widgets, clistviews, portlets, etc, to use the HTTPS protocol?

推荐答案

在 Yii 网站上也有一篇很好的 wiki 文章解释了 具有安全和非安全页面的网站的 URL 管理

There is also a good wiki article about it on the Yii website explaining URL management for Websites with secure and nonsecure pages

本文仅在您的某些内容必须使用 HTTPS 和其他一些 HTTP 时才有用.如果您希望一切都通过 HTTPS 进行,那么它对您没有用处.

The article is only usefull if you have some content that has to use HTTPS and some other HTTP. If you want everything going by HTTPS then it wont be usefull for you.

这篇关于如何配置 Yii Framework 使用 HTTPS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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