Welcome! Log In Create A New Profile

Advanced

Re: [BUG] sendfile on; & output_buffers 1 128k;

Андрей Василишин
September 09, 2011 05:18AM
09.09.2011 12:00, Maxim Dounin пишет:
> Hello!
>
> On Fri, Sep 09, 2011 at 10:58:34AM +0300, Андрей Василишин wrote:
>
> [...]
>
>> Попробовал, без патча проблема не воспроизводится, но есть и другое:
>> При обновлении на лету рабочих процессов запустилось меньше, чем
>> написано в конфиге (worker_processes 40;):
>
> Что как бы намекает нам, что используется другой конфиг. Смотреть
> внимательно на nginx -V.
>

Неа, все тот же конфиг

# nginx -V
nginx: nginx version: nginx/1.1.0
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
--lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid
--with-debug --with-file-aio --with-http_flv_module
--with-http_geoip_module --with-http_realip_module
--with-http_secure_link_module --with-http_stub_status_module
--without-http_memcached_module --without-http_scgi_module
--without-http_split_clients_module --without-http_uwsgi_module


# cat /etc/nginx/nginx.conf
user www-data www-data;
worker_processes 40;
worker_rlimit_nofile 65535;
worker_priority 0;

error_log /var/log/nginx/error_log crit;

pid /var/run/nginx.pid;

events {
worker_connections 65535;
debug_connection 77.47.176.189;
}

http {
include mime.types;
default_type application/octet-stream;

log_format main '$remote_addr - $remote_user [$time_local] $status '
'"$request" $body_bytes_sent "$http_referer" '
'"$http_user_agent" "http_x_forwarded_for"';

access_log /var/log/nginx/access.log main;
# client_max_body_size 2005m;
#server_names_hash_bucket_size 64;
#client_body_temp_path /tmp;
#client_body_in_file_only clean;
#limit_zone one $binary_remote_addr 10m;
#send_timeout 30;
keepalive_timeout 65;
#proxy_buffering off;
tcp_nopush on;
tcp_nodelay on;
log_not_found on;
sendfile on;

server {
listen x.x.x.x:80;
server_name x.x.x.x;
access_log /var/log/nginx/x.x.x.x.access.log main;
error_log /var/log/nginx/x.x.x.x.error.log crit;
location ~ \.php$ {
#rewrite ^/download/(\w+)/(.*)
/download.php?hash=$1&filename=$2 last;
proxy_pass http://127.0.0.1:8080;
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 20;
#proxy_send_timeout 20;
#proxy_read_timeout 20;

}

location /dom_2_filesspisok {
root /var/www/;
open_file_cache max=3000 inactive=120s;
open_file_cache_valid 30s;
open_file_cache_min_uses 2;
open_file_cache_errors off;
try_files
/x.x.x.x-st1$uri
/x.x.x.x-st2$uri
=404;
internal;
flv;
limit_rate_after 640k;
limit_rate 64k;
output_buffers 1 128k;
# aio on;
# directio 4m;
# set $limit_rate 256k;

}
location / {
rewrite ^/download/(\w+)/(.*)
/download.php?hash=$1&filename=$2 last;
root /var/www/x.x.x.x;
}

location /munin {
auth_basic "closed site";
auth_basic_user_file /var/www/x.x.x.x/munin/.htpasswd;
root /var/www/x.x.x.x;
index index.html;
}

location /nginx_status {
stub_status on;
access_log off;
allow 127.0.0.1;
allow y.y.y.y;
}

}

}






--
WBR, Andrey Vasilishin CDIG1-UANIC, CDIG1-RIPE

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

auth_basic ошибка 500

Андрей Василишин September 04, 2011 12:48PM

Re: auth_basic ошибка 500

Maxim Dounin September 04, 2011 01:14PM

Re: auth_basic ошибка 500

Андрей Василишин September 04, 2011 01:42PM

[BUG] sendfile on; & output_buffers 1 128k;

Андрей Василишин September 05, 2011 11:20AM

Re: [BUG] sendfile on; & output_buffers 1 128k;

Igor Sysoev September 05, 2011 11:48AM

Re: [BUG] sendfile on; & output_buffers 1 128k;

Андрей Василишин September 08, 2011 08:46AM

Re: [BUG] sendfile on; & output_buffers 1 128k;

Maxim Dounin September 08, 2011 09:22AM

Re: [BUG] sendfile on; & output_buffers 1 128k; Attachments

Андрей Василишин September 09, 2011 04:00AM

Re: [BUG] sendfile on; & output_buffers 1 128k;

Maxim Dounin September 09, 2011 05:02AM

Re: [BUG] sendfile on; & output_buffers 1 128k;

Андрей Василишин September 09, 2011 05:18AM

Re: [BUG] sendfile on; & output_buffers 1 128k;

Igor Sysoev September 09, 2011 05:56AM

Re: [BUG] sendfile on; & output_buffers 1 128k;

Maxim Dounin September 09, 2011 06:18AM

Re: [BUG] sendfile on; & output_buffers 1 128k;

Maxim Dounin September 09, 2011 06:58AM

Re: [BUG] sendfile on; & output_buffers 1 128k;

Андрей Василишин September 09, 2011 09:28AM

Re: [BUG] sendfile on; & output_buffers 1 128k;

Igor Sysoev September 09, 2011 09:30AM

Re: [BUG] sendfile on; & output_buffers 1 128k;

Igor Sysoev September 09, 2011 05:58AM

Re: [BUG] sendfile on; & output_buffers 1 128k;

Maxim Dounin September 12, 2011 05:54PM

Re: [BUG] sendfile on; & output_buffers 1 128k;

Maxim Dounin September 05, 2011 01:02PM

Re: [BUG] sendfile on; & output_buffers 1 128k;

Андрей Василишин September 05, 2011 01:38PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 221
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