[技术文章] iis 开启HSTS

[复制链接]
作者
n2n1   看全部 |阅读模式 发布于7 天前 来自河北
iis 开启HSTS
Configure headers per website
Open the Internet Information Services (IIS) Manager via Start → Administrative Tools → IIS Manager.
IIS-HSTS-headers-1k.png
  • Click on HTTP Response Headers.
  • Click on Add... in the Actions panel.
    IIS-HSTS-headers-2k.png
  • Enter the following values in the Add Custom HTTP Response Headers dialog box:
  • Close the IIS Manager after confirmation.
Redirecting visitors to the HTTPS URL
Open the Internet Information Services (IIS) Manager via Start → Administrative Tools → IIS Manager.
  • Click on HTTP Redirect.
  • Check the Redirect box and enter the target URL (HTTPS). Set the status to permanent redirect (301)

IIS-HSTS-headers-1k.png
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 创建账号

本版积分规则

Archiver|小黑屋|( 冀ICP备2021005463号 )

GMT+8, 2022-6-27 22:58 , Processed in 0.109167 second(s), 27 queries .

N2N1 It社区 n2n1.cn

Copyright © 2001-2021,MeiCheng.

快速回复 返回顶部 返回列表