ðòïåëôù 


  áòèé÷ 


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: nginx stable ver. in freebsd ports collection



# sysctl net.inet.tcp.nolocaltimewait
net.inet.tcp.nolocaltimewait: 0


2009/6/1 Alexey V. Karagodov <kav@xxxxxxxxxxxxxx>:
> net.inet.tcp.nolocaltimewait=1
> ÓÌÕÞÁÊÎÏ ÎÅ ÉÓÐÏÌØÚÕÅÔÓÑ?
>
> On 01.06.2009, at 18:27, Vladimir Getmanshchuk wrote:
>
>> ï!
>> îÅ ÐÅÒÅÇÒÕÖÁÌ nginx ÐÏÓÌÅ ÚÁ×ÉÓÁÎÉÅ É ÎÁÛÅÌ ÏÞÅÒÅÄÉ:
>>
>> # netstat -Lan
>> Current listen queue sizes (qlen/incqlen/maxqlen)
>> Proto Listen š š š š Local Address
>> tcp4 š314/0/4096 š š *.80
>>
>>
>> 2009/6/1 Igor Sysoev <is@xxxxxxxxxxxxx>:
>>>
>>> On Mon, Jun 01, 2009 at 03:23:54PM +0300, Vladimir Getmanshchuk wrote:
>>>
>>>> user site site;
>>>> worker_processes š2; # last value 8
>>>>
>>>> error_log š /var/log/nginx-error.log info;
>>>> #[info | error | debug]
>>>>
>>>> events {
>>>> šworker_connections 4096;
>>>> šuse kqueue;
>>>> # šmulti_accept on;
>>>> }
>>>>
>>>> http {
>>>> š šinclude š š š š š š mime.types;
>>>> š šinclude š š š š š š proxy.conf;
>>>> š š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;
>>>>
>>>> š šsendfile š š š on;
>>>> š štcp_nopush š š on;
>>>> š štcp_nodelay š šon;
>>>> š šserver_names_hash_bucket_size š 64;
>>>> š šreset_timedout_connection on;
>>>>
>>>> š škeepalive_timeout š65;
>>>>
>>>> # š šgzip on;
>>>> # š šgzip_min_length 0;
>>>> # š šgzip_proxied any;
>>>> # š šgzip_types text/html text/plain text/css application/x-javascript
>>>> application/xml;
>>>>
>>>> š šupload_progress proxied 1m;
>>>>
>>>> š š#Fixing hw lb errors
>>>> š šgeo $lb š{
>>>> š š default š š š0;
>>>> š š 192.168.100.130 š1; š # LB IPs
>>>> š š}
>>>>
>>>> š šserver {
>>>> š š š šlisten š š š 80;
>>>> š š š šserver_name šsite.com www.site.com;
>>>> š š š šaccess_log š/usr/local/www/log/nginx-www.site.com-access.log
>>>> šmain;
>>>>
>>>> š š š š# Main location
>>>> š š š šlocation / {
>>>> š š š š š šproxy_pass š š š š http://127.0.0.1:8080/;
>>>> š š š š š štrack_uploads proxied 30s;
>>>> š š š š}
>>>> š š š š# Static files location
>>>> š š š šlocation ~ ^/(images|javascript|js|css|flash|media|static)/ š{
>>>> š š š š š root š š/usr/local/www/www/;
>>>> š š š š š expires 30d;
>>>> š š š š}
>>>> š š š š# Upload progress
>>>> š š š šlocation ^~ /progress {
>>>> š š š š š šreport_uploads proxied;
>>>> š š š š}
>>>> š š š š# Server status
>>>> š š š šlocation /status {
>>>> š š š š š stub_status on;
>>>> š š š š š access_log š off;
>>>> š š š š š allow š 127.0.0.1;
>>>> š š š š š deny š šall;
>>>> š š š š}
>>>> š š š š# Error pages
>>>> š š š šerror_page 400 /400;
>>>>
>>>> š š š š# 400
>>>> š š š šlocation = /400 {
>>>> š š š š š if ($lb) {
>>>> š š š š š š access_log šoff;
>>>> š š š š š š š š}
>>>> š š š š š š return 400;
>>>> š š š š}
>>>> š š}
>>>> š šserver {
>>>> š š š šlisten š š š 80;
>>>> š š š šserver_name šwww1.site.com;
>>>> š š š š#access_log š/usr/local/www/log/nginx-www.site.com-two-access.log
>>>> šmain;
>>>>
>>>> š š š š# Main location
>>>> š š š šlocation / {
>>>> š š š š š šproxy_pass š š š š http://127.0.0.1:8080/;
>>>> š š š š š štrack_uploads proxied 30s;
>>>> š š š š}
>>>> š š š š# Static files location
>>>> š š š šlocation ~ ^/(images|javascript|js|css|flash|media|static)/ š{
>>>> š š š š š root š š/usr/local/www/www1/;
>>>> š š š š š expires 30d;
>>>> š š š š}
>>>> š š š š# Upload progress
>>>> š š š šlocation ^~ /progress {
>>>> š š š š š šreport_uploads proxied;
>>>> š š š š}
>>>> š š š š# Server status
>>>> š š š šlocation /status {
>>>> š š š š š stub_status on;
>>>> š š š š š access_log š off;
>>>> š š š š š allow š 127.0.0.1;
>>>> š š š š š deny š šall;
>>>> š š š š}
>>>> š š š š# Error pages
>>>> š š š šerror_page 400 /400;
>>>>
>>>> š š š š# 400
>>>> š š š šlocation = /400 {
>>>> š š š š š if ($lb) {
>>>> š š š š š š access_log šoff;
>>>> š š š š š š š š}
>>>> š š š š š š return 400;
>>>> š š š š}
>>>> š š}
>>>>
>>>> }
>>>
>>> îÁ www.rambler.ru ÂÅÚ ÐÒÏÂÌÅÍ ÉÓÐÏÌØÚÕÅÔÓÑ ÐÏÄÏÂÎÁÑ ÖÅ ÆÕÎËÃÉÏÎÁÌØÎÏÓÔØ
>>> ÚÁ ÉÓËÌÀÞÅÎÉÅÍ upload'Ï×.
>>>
>>>
>>> --
>>> éÇÏÒØ óÙÓÏÅ×
>>> http://sysoev.ru
>>>
>>>
>>
>>
>>
>> --
>> Yours sincerely,
>> Vladimir Getmanshchuk
>>
>> Senior Unix System Administrator
>> Openfilm, LLC
>>
>> Email: vladget@xxxxxxxxxxxx
>> Skype: vladimir.getmanshchuk
>>
>
>
>



-- 
Yours sincerely,
Vladimir Getmanshchuk

Senior Unix System Administrator
Openfilm, LLC

Email: vladget@xxxxxxxxxxxx
Skype: vladimir.getmanshchuk



 




Copyright © Lexa Software, 1996-2009.