零大小的共享存储区被“代理".在nginx中 [英] zero size shared memory zone "proxied" in nginx
问题描述
我用nginx-extras安装了nginx以获得(Http Upload Progress Module).
I installed nginx with nginx-extras to get (Http Upload Progress Module).
然后,我尝试按照本文档(例如页面底部的示例)使用它-> http://wiki.nginx.org/HttpUploadProgressModule .在我的配置中插入这一行(track_uploads proxied 30s;
)之后,出现以下错误
Then i tried to use it following this documentation ( example on the bottom of the page ) -> http://wiki.nginx.org/HttpUploadProgressModule. After inserting this one line (track_uploads proxied 30s;
) in my configuration , i get the following error
nginx:[emerg]零大小的共享存储区已代理"
nginx: [emerg] zero size shared memory zone "proxied"
我在互联网上的某个地方发现有人建议将upload_progress proxied 10m;
插入到nginx.conf中,插入后我开始出现以下错误:
Somewhere on the internet i found , that someone suggested to insert upload_progress proxied 10m;
into nginx.conf , and after inserting it i started geting the following error:
nginx:[emerg]共享存储区代理"的大小10485760 与/etc/nginx/nginx.conf:75
nginx: [emerg] the size 10485760 of shared memory zone "proxied" conflicts with already declared size 0 in /etc/nginx/nginx.conf:75
这是config的一部分,在此行中插入....
This the part of the config , where are inserted this line....
location ~ \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME /home/cha0s/learnphp$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_script_name;
track_uploads proxied 1m;
}
所以问题是,我应该在nginx.conf中写些什么来解决此错误?预先感谢.
推荐答案
您应将upload_progress proxied 1m;
放在server
块之前,就像在
You should put upload_progress proxied 1m;
before your server
block, like it is in the example.
这篇关于零大小的共享存储区被“代理".在nginx中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!