nginx stable ver. in freebsd ports collection

Vladimir Getmanshchuk vladget at openfilm.com
Mon Jun 1 18:26:37 MSD 2009


Вот последние 100 строк из nginx-error.log

2009/06/01 10:01:49 [info] 15718#0: *1285 kevent() reported that
client 192.168.100.130 closed keepalive connection (54: Connection
reset by peer)
2009/06/01 10:01:54 [info] 15718#0: *1354 kevent() reported that
client 192.168.100.130 closed keepalive connection (54: Connection
reset by peer)
2009/06/01 10:01:58 [info] 15718#0: *1333 kevent() reported that
client 70.91.241.113 closed keepalive connection (54: Connection reset
by peer)
2009/06/01 10:01:59 [info] 15718#0: *1419 kevent() reported that
client 192.168.100.130 closed keepalive connection (54: Connection
reset by peer)
2009/06/01 10:02:03 [info] 15717#0: *490 kevent() reported that client
68.119.0.71 closed keepalive connection (54: Connection reset by peer)
2009/06/01 10:02:04 [info] 15717#0: *1455 kevent() reported that
client 192.168.100.130 closed keepalive connection (54: Connection
reset by peer)
2009/06/01 10:02:09 [info] 15717#0: *1500 kevent() reported that
client 192.168.100.130 closed keepalive connection (54: Connection
reset by peer)
2009/06/01 10:02:14 [info] 15717#0: *1538 kevent() reported that
client 192.168.100.130 closed keepalive connection (54: Connection
reset by peer)
2009/06/01 10:02:19 [info] 15718#0: *1558 kevent() reported that
client 192.168.100.130 closed keepalive connection (54: Connection
reset by peer)
2009/06/01 10:02:19 [notice] 15716#0: signal 20 (SIGCHLD) received
2009/06/01 10:02:19 [alert] 15716#0: worker process 15717 exited on signal 10
2009/06/01 10:02:19 [notice] 15716#0: start worker process 15834
2009/06/01 10:02:19 [notice] 15716#0: signal 23 (SIGIO) received
2009/06/01 10:02:19 [notice] 15716#0: signal 23 (SIGIO) received
2009/06/01 10:02:21 [info] 15834#0: *1569 kevent() reported that
client 67.18.5.151 closed keepalive connection
2009/06/01 10:02:24 [info] 15834#0: *1582 kevent() reported that
client 192.168.100.130 closed keepalive connection (54: Connection
reset by peer)
2009/06/01 10:02:29 [info] 15834#0: *1597 kevent() reported that
client 192.168.100.130 closed keepalive connection (54: Connection
reset by peer)
2009/06/01 10:02:34 [info] 15834#0: *1603 kevent() reported that
client 192.168.100.130 closed keepalive connection (54: Connection
reset by peer)
2009/06/01 10:02:39 [info] 15834#0: *1617 kevent() reported that
client 192.168.100.130 closed keepalive connection (54: Connection
reset by peer)
2009/06/01 10:02:44 [info] 15834#0: *1641 kevent() reported that
client 192.168.100.130 closed keepalive connection (54: Connection
reset by peer)
2009/06/01 10:02:49 [info] 15834#0: *1647 kevent() reported that
client 192.168.100.130 closed keepalive connection (54: Connection
reset by peer)
2009/06/01 10:02:54 [info] 15834#0: *1653 kevent() reported that
client 192.168.100.130 closed keepalive connection (54: Connection
reset by peer)




2009/6/1 Igor Sysoev <is at rambler-co.ru>:
> 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 at openfilm.com
Skype: vladimir.getmanshchuk





More information about the nginx-ru mailing list