Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


   


   


   















      :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re:


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re:
  • From: <chipitsine@xxxxxxxxx>
  • Date: Mon, 28 May 2012 12:08:11 +0600
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=YARYmxp1pOdsiHX4sklNHeyWKoXLG0AAwAq6Cs5oXiA=; b=Jcr3yKSB81VncNP39kCFiJ/OD6JUzRbc18uY990N/HRS5n9nm+Cu0wBgvFZvJeb9em tj2+eqx+160567tz0g41wbSRoB2VceDXvBlqWi2CgzaORGQ5N4ZBwr1Jn6MKSo0V2zA3 GOfN4gId0dzDuC9dMpPQ1u48dZhKssdri8GB3IWqhAp8s1Rxgu31FFcATpQYcCtPAMxe avpraTYk64TnKooPh6Bq/z/aY/TscE84Wrwd+X1WQg22HHAi69DbxL54+0+OH60v6Zbm EvNmFvS0Uk4tpq4UdcbdOjlM4zuL8bZCPTzYKREUR3wrDFDBa0SSRV/JzEk1I66GjIn0 m6Fg==
  • In-reply-to: <210681338047095@web29g.yandex.ru>
  • References: <210681338047095@web29g.yandex.ru>

dmalloc - .
, ? , .

26 2012., 21:44 Denis F. Latypoff <latypoff@xxxxxxxxx> :
. 1.2.0 1.3.0,
http://s12.postimage.org/64ix4e8vf/localhost_nginx_request_week.png
70 1 (RSS) .
. Keepalive' . Nginx
, ( 200-300
). ,
. :

user nobody nobody;
worker_processes 2;
worker_rlimit_nofile 1000000;
worker_rlimit_core 100M;
working_directory /tmp;
error_log logs/error.log warn;

events {
worker_connections 32768;
accept_mutex off;
}

http {

include mime.types;
default_type application/octet-stream;
sendfile on;
tcp_nopush on;
reset_timedout_connection on;
log_not_found off;
server_tokens off;
server_name_in_redirect off;
recursive_error_pages on;

proxy_ignore_client_abort on;
proxy_intercept_errors on;
proxy_connect_timeout 600;
proxy_read_timeout 600;
proxy_send_timeout 600;
send_timeout 600;
client_header_timeout 600;
keepalive_timeout 75 20;

gzip on;
gzip_proxied any;
gzip_min_length 0;
gzip_types text/css
text/xml
text/plain
text/_javascript_
image/x-ms-bmp
application/xml
application/x-_javascript_;

geoip_city /usr/share/GeoIP/GeoIPCity.dat utf8;
geoip_org /usr/share/GeoIP/GeoIPASNum.dat utf8;

upstream upstream_counter {
server 127.0.0.1:8090;
}

server {

listen 80;
server_name NAME;

access_log off;
error_log logs/error.log warn;
root /root;
charset utf-8;

location = /i/1x1.gif {
empty_gif;
}

location = /0.gif {
limit_except GET { deny all; }
set_real_ip_from XXX;
error_page 502 =200 /i/1x1.gif;
error_page 503 =200 /i/1x1.gif;
error_page 504 =200 /i/1x1.gif;
error_page 404 =200 /i/1x1.gif;
proxy_pass http://upstream_counter;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header GeoIP-Country-Code $geoip_city_country_code;
proxy_set_header GeoIP-Region-Name $geoip_region_name;
proxy_set_header GeoIP-City $geoip_city;
proxy_set_header GeoIP-Coords '$geoip_latitude:$geoip_longitude';
proxy_set_header GeoIP-ISP $geoip_org;
}

location / {
return 444;
}
}

--
br, Denis F. Latypoff.

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru

  • References:
      • From: Denis F . Latypoff

 




Copyright © Lexa Software, 1996-2009.