Welcome! Log In Create A New Profile

Advanced

nginx: [emerg] unknown limit_req_zone "one" in /etc/nginx/sites-enabled/portal

Posted by user~13 
nginx: [emerg] unknown limit_req_zone "one" in /etc/nginx/sites-enabled/portal
October 18, 2011 07:15AM
$ nginx -V
nginx: nginx version: nginx/1.0.8
nginx: TLS SNI support enabled
nginx: configure arguments: --prefix=/etc/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-log-path=/var/log/nginx/access.log --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid --with-debug --with-http_addition_module --with-http_dav_module --with-http_geoip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_realip_module --with-http_stub_status_module --with-http_ssl_module --with-http_sub_module --with-http_xslt_module --with-ipv6 --with-sha1=/usr/include/openssl --with-md5=/usr/include/openssl --with-mail --with-mail_ssl_module --add-module=/build/buildd/nginx-1.0.8/debian/modules/nginx-echo --add-module=/build/buildd/nginx-1.0.8/debian/modules/nginx-upstream-fair


При запуске выдаёт: nginx: [emerg] unknown limit_req_zone "one" in /etc/nginx/sites-enabled/portal


server {
listen 91.***.**.**:80;
server_name portal.lan;

#access_log /srv/http/portal/logs/access.log;
access_log off;
location / {
proxy_pass http://127.0.0.1:80/;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 10m;
client_body_buffer_size 128k;
proxy_connect_timeout 30;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffer_size 4k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 10m;

open_file_cache max=1024 inactive=600s;
open_file_cache_valid 2000s;
open_file_cache_min_uses 1;
open_file_cache_errors on;
limit_req zone=one burst=5;
}

В чём может быть дело?
Re: nginx: [emerg] unknown limit_req_zone "one" in /etc/nginx/sites-enabled/portal
October 18, 2011 07:24AM
упс, сорри, вроде разобрался
Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 318
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready