
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 配置文件参考收藏
- Openlitespeed /litespeed 常用的伪静态(rewrite)规则大全
- Openlitespeed /litespeed deny methods to access folders and files
- 有意思,openlitespeed的PHP进程重启方式
- 解决路由器ip变动的方法
- AppStore 下载失败 使用已购页面再试一次的解决方法
- ssh登陆出现“用户密匙未在远程机器注册“解决方法
- 怎样更新开源的http3服务器-openlitespeed
- 重装开源微博pleroma的方法