php - $_SERVER ["HTTP_ACCEPT_ENCODING"] 未由 nginx 设置

标签 php apache nginx centos

我已经安装了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/

相关文章:

apache - 无法启动 apache apex cli

Java xml dsig DigestValue ( jsr105 Provider apache, oracle )

linux - 创建目录并将图像上传到远程网络服务器

security - 在站点 B 上使用 nginx proxy_pass 来提供内容时,如何覆盖站点 A 的内容安全策略?

PHP Foursquare API 返回 Null 到 venues/search

apache - 使用EBS在Amazon Web Services上设置Hadoop集群

php - DOM - Uncaught Error : NOT_FOUND_ERR: DOM Exception 8 with RemoveChild

python - Django 静态文件未找到值错误

php - mysql 显示数组 php 中的所有列名

php - 你怎么写“Select (all) From (table) Where posting=$posting except this posting?(Mysql)