windows2012 add ssl certificate

first step:

First download rewrite_x64_zh-cn.msi, and install

(* This is version 2.0, do not install version 2.1, otherwise the process leading to the site pools all closed)

https://www.microsoft.com/zh-CN/download/confirmation.aspx?id=7435

Step two:

After installation, iis website which will have url rewriting,

Click to enter, click Add a blank rule

Name: free to fill, here to write https

mode:(.*)

One, conditions

Click Add conditions:

Condition input: {HTTPS} // this is very important, this is used to match the beginning https

Mode: ^ OFF $

Ignore case check, and then click OK

Second, the operating

Operation Type: Redirect

Operational attributes: https: // {HTTP_HOST} / {R: 1}

Redirect Type: Permanent 301

 

Guess you like

Origin www.cnblogs.com/weilaibuxiangshuo/p/11781528.html