ðòïåëôù 


  áòèé÷ 


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]

[?? Probable Spam] Re: ÂÁÇÁ ???


  • To: nginx-ru@xxxxxxxxx
  • Subject: [?? Probable Spam] Re: ÂÁÇÁ ???
  • From: Slava Kokorin <slava.kokorin@xxxxxxxxx>
  • Date: Wed, 20 Apr 2011 10:54:07 +0400
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=u+ULW+3Lrgmk/vVbIrPm/xPzpA9Np99ObqnZXQdzoLo=; b=cxVVZ/+ubcicRA1zNnsh/YQUT9f6DTXy3z7SGaSK1Gj7q6hip2KJ5tnzgSg16dZhG2 MejpqKqRYb5z3MAvFshEaM5IQn6PgsfjVFHvffUBX76WWk0zZuF10kTO4b4cfkq5vmV7 uYDXkab9eAHa7LOOezt8+9NILxP74pLncM8lM=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=bSL+IowneZLh2VxLGjdUVDmke2Bzz+1hpefGuq8WDfcBhvSp6vqIvCvVAyxklWw28U EOU2coP1NZgFj/stnKtuOYEoKcTpSynArRsFnAGPN+0NyokoZxUe6Sixj4XZUdREAtRm fpGuRoOuO6uZnFwOihIvDw+OefPvwvoDxonsI=
  • In-reply-to: <BANLkTimqAsUSEpr23-4oBQjRxtofZ=uK4Q@xxxxxxxxxxxxxx>
  • References: <BANLkTimqAsUSEpr23-4oBQjRxtofZ=uK4Q@xxxxxxxxxxxxxx>

äÉÒÅËÔÉ×Á server_name ÎÅ ÉÍÅÅÔ šÐÁÒÁÍÅÔÒÁ "default"
äÉÒÅËÔÉ×Á listen - ÉÍÅÅÔ.

20 ÁÐÒÅÌÑ 2011šÇ. 10:42 ÐÏÌØÚÏ×ÁÔÅÌØ -=HaRius=- <rh@xxxxxxxxxx> ÎÁÐÉÓÁÌ:
ÄÏÂÒÙÊ.

ÄÅÌÁÌ ÄÅÓÑÔËÉ ÒÁÚ, ÎÏ × ÜÔÏÔ ÒÁÚ ÞÅÔÏ ÎÅ ÔÁË.
ÎÅ ÐÁÛÅÔ server default;
ËÏÎÆÉÇÉ ÎÉÖÅ.

ÐÒÉšÏÂÒÁÝÅÎÉÉšÎÁ http://8.8.8.8/nginx_status ÐÏÌÕÞÁÀ ÐÕÓÔÏÊ ÆÁÊÌ,
ÐÒÉ ÜÔÏÍ ÚÁÐÉÓØ × ÌÏÇÁÈ ÐÏÑ×ÌÑÅÔÓÑ ÎŠך/var/log/nginx/8.8.8.8.log,
Á ך/var/log/nginx/img-1.domain.ru.log!
Ô.Å. ÎÅ ÐÁÛÅÔ ËÏÎÓÔÒÕËÃÉÑšserver default; ?
ÐÒÏ×ÅÒÉÌ, ÞÔÏ ÎÇÉÎËÓ ÐÁÒÓÉÔ ÜÔÏÔ ÆÁÊÌ ×ÏÏÂÝÅ, ÓÄÅÌÁÌ ÏÛÉÂËÕ × ÎÅÍ,
ÎÇÉÎËÓ ÒÕÇÎÕÌÓÑ.

ËÏÎÆÉÇÉ ËÏÐÉÒÏ×ÁÌ Ó ÄÒ ÓÅÒ×ÅÒÁ, ÎÁ ËÏÔÏÒÏÍ ÏÎÉ ÒÁÂÏÔÁÀÔšËÏÒÒÅËÔÎÏ,
ÅÄÉÎÓÔ×ÅÎÎÏÅ ÜÔÏÔ ÐÏËÏÒÏÞÅ ÂÕÄÅÔ.
ÐÒÏ×ÅÒÉÌ ÎÁ 0.8 ×ÅÒÓÉÉ, É ÎÁ 1.0 ÏÄÉÎÁËÏ×Ï.

ÞÔÏ ÎÅ ÔÁË ÓÄÅÌÁÌ ? =(

------------------
# cat nginx.conf š š š š š š š š š š š š š š š š š š š š š š š š š š š š š š š š š š š š š š šš
user www www;
worker_processes 4;
worker_rlimit_nofile 8192;

timer_resolution 100ms;
worker_priority -5;

error_log /var/log/nginx/error.log;

pid /var/run/nginx.pid;

events {
šš šworker_connections 8192;
šš šuse kqueue;
}

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

šš šaccess_log /var/log/nginx/access.log;
šš š
šš šlog_format proxy '"$request";$remote_addr;$proxy_add_x_forwarded_for';

šš šclient_body_temp_path š š š /tmp/nginx/body_temp 1 2;
šš šproxy_temp_path š š š š š š /tmp/nginx/proxy_temp 1 2;
šš šfastcgi_temp_path š š š š š /tmp/nginx/fastcgi_temp 1 2;

šš škeepalive_timeout 30;
šš šreset_timedout_connection on;

šš šgzip š š š š š š š šon;
šš šgzip_min_length š š 1100;
šš šgzip_buffers š š š š512 8k;
šš šgzip_comp_level š š 7;
šš šgzip_proxied š š š šany;
šš šgzip_types š š š š štext/plain text/js application/x-_javascript_ text/css;

šš šsendfile š šon;
šš štcp_nodelay on;
šš štcp_nopush šon;

šš šserver_names_hash_max_size 2024;
šš šserver_names_hash_bucket_size 128;

šš š# --- Hide server name --- #
šš šserver_tokens off;

šš šinclude russia.ip; # ÆÁÊÌ ÐÕÓÔÏÊ

šš šinclude domains/*/+*; # ÐÏÄÇÒÕÖÁÅÍ ÅÎÁÂÌÅÎÎÙÅ ×ÉÒÔ ÈÏÓÔÙ
}
----------------------------
# cat +8.8.8.8
server {

š- š šlistenš8.8.8.8:80;
+šš šlistenš8.8.8.8:80šdefaultšrcvbuf=8k sndbuf=16k backlog=8192 accept_filter=httpready;

š- š šserver_name default rcvbuf=8k sndbuf=16k backlog=8192 accept_filter=httpready;
+ š šserver_name whatever;

šš š#šserver_name 8.8.8.8 default rcvbuf=8k sndbuf=16k backlog=8192 accept_filter=httpready; - ÔÏÖÅ ÎÅ ÐÁÛÅÔ.

šš šaccess_log /var/log/nginx/8.8.8.8.log combined;

šš šclient_header_timeout 15;

šš šlocation / { return 200; }

šš šlocation /nginx_status {
šš š š šallow 127.0.0.1;
šš š š šallowš8.8.8.8
šš š š šdeny all;
šš š š šstub_status on;
šš š š šaccess_log off;
šš š}
}
------------------------------------
server {
šš šlisten 8.8.8.8:80;

šš šserver_nameštools.domain.ru;

šš šaccess_log /var/log/nginx/tools.domain.ru.log combined;

šš šauth_basic "closed site";
šš šauth_basic_user_file /usr/local/etc/nginx/htpasswd;

šš š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 200m;
šš š š š}
}
-------------------------------------
# cat +img-1.domain.ruš
server {
šš šlisten 8.8.8.8:80;

šš šserver_name img-1.domain.ru;

šš šaccess_log /var/log/nginx/img-1.domain.ru.log combined;

šš šlocation / { return 200; }

šš šlocation ^~ /media/images/uploaded {
šš š š š root /home/backup;
šš š š š try_files š š š$uri š@notfound;
šš š š š # access_log off;
šš š š š expires 43200s;
šš š š š open_file_cache max=1024 inactive=600s;
šš š š š open_file_cache_valid 2000s;
šš š š š open_file_cache_min_uses 5;
šš š š š open_file_cache_errors on;
šš š š š }

šš š location @notfound {
šš š š š proxy_pass š http://10.10.10.1:80;
šš š š š proxy_redirect off;
šš š š š proxy_set_header Host domain.ru;
šš š š š proxy_set_header X-Real-IP $remote_addr;
šš š š š proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
šš š š š client_max_body_size 10m;
šš š š š # access_log off;
šš š š š expires 43200s;
šš š š š }
}
---------------------------------------

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




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


 




Copyright © Lexa Software, 1996-2009.