【问题标题】:POST max size in nginix apache and php在 nginx apache 和 php 中发布最大大小
【发布时间】:2018-09-12 08:21:44
【问题描述】:

我将 nginx 设置为代理服务器,而 apache 配置了 php。

我正在通过 curl 向我的服务器发送一个内部发布请求。但是我发送的字符串长度是 id 4023 字符。但在服务中,我只得到 1013 个字符作为字符串长度。

我检查了我的 php.ini。我有post_max_size 作为24M 就足够了。 在 nginx.conf 中,我设置了client_max_body_size 8m

但我仍然得到修剪的内容。如何解决这个问题?

【问题讨论】:

    标签: php apache nginx web


    【解决方案1】:

    在 php.ini 或 .htaccess 文件中更改 input_max_vars。

    php_value max_input_vars 2000
    

    这样就可以了。

    【讨论】:

    • 我在 httpd.conf 中更新了 php_value max_input_vars 10000,但仍然无法获取数据。
    • 你在 phpinfo.xml 中检查过同样的内容吗?如果它需要 10000
    猜你喜欢
    • 2014-08-14
    • 1970-01-01
    • 2011-03-16
    • 2015-01-29
    • 2021-05-19
    • 2017-08-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多