[英]Setting P3P headers in Apache causes Internal Server Error
I wanted to set the P3P Headers by adding them to .htaccess
using the following: 我想通过使用以下命令将它们添加到
.htaccess
来设置P3P标头:
<IfModule mod_headers.c>
Header set P3P "CP="ALL DSP COR CUR ADM TAI OUR IND COM NAV INT""
</IfModule>
However, this causes an Internal Server Error. 但是,这会导致内部服务器错误。 The only related entry in the server log I can find is .htaccess :
Header has too many arguments
我可以在服务器日志中找到的唯一相关条目是.htaccess:
Header has too many arguments
As far as I can tell, mod_headers.c
loaded. 据我所知,
mod_headers.c
加载。
Any idea on how to fix this? 关于如何解决此问题的任何想法? Thanks!
谢谢!
This line: 这行:
Header set P3P "CP="ALL DSP COR CUR ADM TAI OUR IND COM NAV INT""
Should be written as: 应写为:
Header set P3P "CP=\"ALL DSP COR CUR ADM TAI OUR IND COM NAV INT\""
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.