HTTP 严格传输安全性
HTTP 严格传输安全性 (HSTS) 是帮助防范网站遭受中间人攻击(例如协议降级攻击和 Cookie 劫持)的策略机制。
On SUSE Multi-Linux Manager, HSTS is enabled by default. If you need to disable it on the server, follow this procedure:
On the server container host, as root, execute the following command to create a new configuration file with setting
max-age=0:mgrctl exec -- \ echo 'Header always set Strict-Transport-Security "max-age=0; includeSubDomains"' \ > /etc/apache2/conf.d/zz-spacewalk-www-hsts.conf使用以下命令重启动 Apache:
mgrctl exec -- systemctl restart apache2
If you need to disable it on the proxy, follow this procedure:
On the server container host, as root, execute the following command to create a new configuration file with setting
max-age=0:echo 'Header always set Strict-Transport-Security "max-age=0; includeSubDomains' \ > /etc/uyuni/custom-httpd.confRun the command:
mgrpxy install podman --tuning-httpd /etc/uyuni/custom-httpd.conf config.tar.gz
|
为新配置文件 |
|
在使用 SUSE Multi-Linux Manager 生成的默认 SSL 证书或自我签名证书的情况下启用 HSTS 后,浏览器将拒绝通过 HTTPS 进行连接,除非用于为此类证书签名的 CA 受浏览器信任。如果您使用的是 SUSE Multi-Linux Manager 生成的 SSL 证书,可以通过将 |