iis http重定向https
来源:互联网 发布:乐器软件 编辑:程序博客网 时间:2024/05/18 02:58
1、购买SSL证书,参考:http://www.cnblogs.com/yipu/p/3722135.html
2、IIS7 / IIS 7.5 下绑定 HTTPS 网站(购买Wildcard SSL泛域名证书可绑定多个子域名)参考上文
3、下载安装URL重写模块:Microsoft URL Rewrite Module
32位:http://download.microsoft.com/download/4/9/C/49CD28DB-4AA6-4A51-9437-AA001221F606/rewrite_x86_zh-CN.msi
64位:http://download.microsoft.com/download/4/E/7/4E7ECE9A-DF55-4F90-A354-B497072BDE0A/rewrite_x64_zh-CN.msi
4、取消勾选“SSL设置”-》“要求 SSL”
5、ASP.NET站可直接修改web.config(与“6、IIS配置图示”效果相同),例如:见…节点
<?xml version="1.0" encoding="utf-8"?><configuration> <system.webServer> <rewrite> <rules> <rule name="HTTP to HTTPS redirect" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{HTTPS}" pattern="off" ignoreCase="true" /> </conditions> <action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}/{R:1}" /> </rule> </rules> </rewrite> </system.webServer></configuration>
6、IIS配置图示(图形化的操作过程,与上步效果相同,适用于asp/php等站)
选择要配置的网站,如:,找到“URL重写”,没有的话看上面第3步
进入“URL重写”模块,点击“添加规则”
选择“空白规则”
名称:HTTP to HTTPS redirect
模式:(.*)
条件输入:{HTTP}
模式:off 或 ^OFF$
或者
重定向URL:https://{HTTP_HOST}/{R:1}
重定向类型:已找到(302) 或 参阅其它(303)
配置完成后“应用”到当前站点:
阅读全文
0 0
- iis http重定向https
- IIS HTTP重定向到HTTPS
- IIS 7如何实现http重定向https
- HTTPS重定向到HTTP
- nginx http重定向https
- HTTPS重定向到HTTP
- okhttp3 http 重定向到 https
- okhttp http 重定向到https
- win7 IIS HTTP重定向配置、参数设置
- 如何将Exchange OWA http重定向到https
- Chrome下强制http重定向到https的方法
- Chrome下强制http重定向到https的方法
- Chrome下强制http重定向到https的方法
- 使用 URL Rewrite 重定向 Http 请求至 Https
- nginx配置http请求重定向到https
- IIS7 / IIS7.5 URL 重写 HTTP 重定向到 HTTPS
- nginx服务器http重定向到https的正确写法
- Chrome下强制http重定向到https的问题
- nginx+uwsgi+django(restframework)服务器部署
- 不要滥用递归
- SHA-1
- h5 input控件 多文件上传
- Java File类的简单说明与使用 -- Java 基础
- iis http重定向https
- Java调优经验谈--转
- SQL执行查询时出现返回数据为空的问题
- 自定义控件 RoundImageView
- RobotFrameWork(十)Remote远程库使用
- 不root安卓手机,通过wifi截图
- 前端项目总结
- 继承
- CodeForces