AH02429:响应头名称包含无效字符
问题描述:
我正在使用Apache/2.4.25(Ubuntu)和自签名证书ssl.I在error.log中收到此错误。AH02429:响应头名称包含无效字符
[HTTP:错误] [PID 17439:TID 140353432684288] [客户端 106.51.133.147:21780] AH02429:响应头名 '严格 - 传输 - 安全' 包含无效字符,中止 请求
ServerName mystaging.cloudapp.net Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
答
错误消息中的标题名称中存在尾随空格。
要么你实际上没有复制和粘贴你的配置,要么通过其他方式设置头部的尾部空白。