【问题标题】:Implement HTTP Strict Transport Security (HSTS) on VisualSVN在 VisualSVN 上实现 HTTP 严格传输安全 (HSTS)
【发布时间】:2020-04-24 15:00:22
【问题描述】:

我们的网络安全建议引入 HTTP Strict-Transport-Security 响应标头,但在 VisualSVN(或它的配置)中看不到执行此操作的任何地方。

这适用于在 Windows 2019 DataCenter 上运行的 VisualSVN Enterprise 4.2.2(使用 Apache 1.10.6)。

我没有看到 Apache 的单独安装,服务器上没有 httpd.exe,并且 httpd.conf 文件中有一个标头警告,提示当/如果 VisualSVN 服务启动时,conf 将被覆盖。

【问题讨论】:

    标签: visualsvn-server hsts


    【解决方案1】:

    您可以在 %VISUALSVN_SERVER%conf\httpd-custom.conf 文件中添加以下行并重新启动 VisualSVN Server 服务:

    Header always set Strict-Transport-Security "max-age=31536000"

    请注意,根据您的要求,您可能需要将 max-age 值替换为另一个值。

    【讨论】:

      猜你喜欢
      • 2021-09-16
      • 2015-09-14
      • 2018-04-12
      • 2014-03-20
      • 2017-04-23
      • 1970-01-01
      • 2020-11-30
      • 1970-01-01
      • 2022-08-24
      相关资源
      最近更新 更多