我已经安装了nginx
在我的服务器上。现在我没有得到 $_SERVER["HTTP_ACCEPT_ENCODING"]
在 Apache 中工作的变量。
如何得到这个?
最佳答案
终于通过编辑/etc/nginx/proxy.inc 找到了解决方案
proxy_set_header 接受编码“”
至
proxy_set_header 接受编码 $http_accept_encoding
关于php - $_SERVER ["HTTP_ACCEPT_ENCODING"] 未由 nginx 设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15564177/