
Openlitespeed /litespeed 添加HSTS的方法
编辑虚拟机的配置文件。添加一下代码即可
或者在后台-资源集-头部操作,添加下面代码
1
2
3
4
5
6
7
8
9
10
11
12
context / {
type proxy
handler gobbs
extraHeaders <<<END_extraHeaders
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
X-Content-Type-Options nosniff
X-XSS-Protection 1;mode=block
X-Frame-Options SAMEORIGIN
END_extraHeaders
addDefaultCharset off
}
1
2
3
4
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
X-Content-Type-Options nosniff
X-XSS-Protection 1;mode=block
X-Frame-Options SAMEORIGIN
💘 相关文章
- openlitespeed/litespeed禁止访问文件夹和文件的方法
- Openlitespeed /litespeed deny methods to access folders and files
- Openlitespeed /litespeed 常用的伪静态(rewrite)规则大全
- Openlitespeed /litespeed 配置文件参考收藏
- 查看网站是否支持tls1.3的方法
- AppStore 下载失败 使用已购页面再试一次的解决方法
- Linux系统怎样添加web运行账户?附上常用的Linux用户管理命令
- Debian系统出现 "gpg: command not found"的解决方法
- 卸载腾讯云监控插件的方法
- linux 系統掛載雲盤的方法