AH02429:响应头名称包含无效字符

时间:2017-06-14 09:08:21

标签: apache2.4

我正在使用Apache / 2.4.25(Ubuntu)和自我sighed证书ssl.I我在error.log中收到此错误。

  

[http:error] [pid 17439:tid 140353432684288] [客户   106.51.133.147:21780] AH02429:响应头名称'Strict-Transport-Security'包含无效字符,正在中止   请求

ServerName mystaging.cloudapp.net 
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"

2 个答案:

答案 0 :(得分:2)

错误消息中的标题名称中有尾随空格。

要么你实际上没有复制和粘贴你的配置,要么通过其他方式设置带有尾随空格的标题。

答案 1 :(得分:0)

页眉需要结尾的冒号。

.filter('highlightWord', function () { return function (text, selectedWord) { if (selectedWord) { var pattern = new RegExp(selectedWord, "g"); return text.replace(pattern, '<span class="highlighted">' + selectedWord + '</span>'); } else { return text; } }; })

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security

相关问题