[技术文章] iis 开启HSTS

[复制链接]
作者
n2n1   发布于2022-6-20 15:59:12 来自河北
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, 2024-11-23 17:31 , Processed in 0.101286 second(s), 27 queries , Gzip On.

N2N1 It社区 n2n1.cn

Copyright © 2001-2021,MeiCheng.

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