【问题标题】:how to install gzip Model in nginx如何在 nginx 中安装 gzip 模型
【发布时间】:2014-01-07 13:34:53
【问题描述】:

我想在 linux centos 上安装 gzip 我的网络服务器是 nginx 我该如何安装 重新加载 Nginx 后收到以下错误

[root@server ~]# /etc/init.d/nginx reload
nginx: [emerg] "gzip" directive is not allowed here in /etc/nginx/nginx.conf:131
nginx: configuration file /etc/nginx/nginx.conf test failed

谢谢

【问题讨论】:

  • 我认为问题不在于它没有安装,我认为您在错误的上下文中使用了它,因为 nginx 识别了“gzip”指令,请分享您的配置以便我们可以帮助您.

标签: nginx gzip


【解决方案1】:

希望这可能会有所帮助:Enable gzip compression

【讨论】:

    猜你喜欢
    • 2020-05-16
    • 2017-05-18
    • 1970-01-01
    • 1970-01-01
    • 2014-03-14
    • 1970-01-01
    • 1970-01-01
    • 2023-01-13
    • 1970-01-01
    相关资源
    最近更新 更多