ПРОЕКТЫ 


  АРХИВ 


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]

Подскажите наско лько ?то нормально


  • To: "nginx-ru "@sysoev.ru
  • Subject: Подскажите наско лько ?то нормально
  • From: Nick <nikolia@xxxxxxxxxxxx>
  • Date: Sun, 26 Oct 2008 13:17:08 +0200

user  www www;
worker_processes  5;

error_log  /bla/error.log debug;

pid        /var/run/nginx.pid;

events {
    worker_connections  8192;
}

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  /bla-bla/nginx-access_log  main;
    client_max_body_size 2005m;
    server_names_hash_bucket_size 64;
    limit_zone   one  $binary_remote_addr  10m;
    limit_conn   one  100;
    keepalive_timeout 300;
    proxy_buffering off;
    sendfile       on;
    tcp_nopush     on;
    tcp_nodelay    on;
    real_ip_header     X-Real-IP;


 server {
        listen       80;
         server_name  bla-lba.com www.bla-bla.com;

        access_log  bla-lba-access_log  main;
        error_log   bla-bla-error_log  warn;

        location ~ \.php$ {
            fastcgi_pass   127.0.0.1:3000;
            fastcgi_index  index.php;
            fastcgi_intercept_errors on;
fastcgi_param  QUERY_STRING       $query_string;
fastcgi_param  REQUEST_METHOD     $request_method;
fastcgi_param  CONTENT_TYPE       $content_type;
fastcgi_param  CONTENT_LENGTH     $content_length;

fastcgi_param  SCRIPT_FILENAME  /bla-bla/$fastcgi_script_name;
fastcgi_param  SCRIPT_NAME        $fastcgi_script_name;
fastcgi_param  REQUEST_URI        $request_uri;
fastcgi_param  DOCUMENT_URI       $document_uri;
fastcgi_param  DOCUMENT_ROOT      $document_root;
fastcgi_param  SERVER_PROTOCOL    $server_protocol;

fastcgi_param  GATEWAY_INTERFACE  CGI/1.1;
fastcgi_param  SERVER_SOFTWARE    nginx/$nginx_version;

fastcgi_param  REMOTE_ADDR        $remote_addr;
fastcgi_param  REMOTE_PORT        $remote_port;
fastcgi_param  SERVER_ADDR        $server_addr;
fastcgi_param  SERVER_PORT        $server_port;
fastcgi_param  SERVER_NAME        $server_name;
fastcgi_param  REDIRECT_STATUS    200;
fastcgi_temp_path                 /bla-bla/tmp;
client_body_temp_path             /bla-bla/tmp;
proxy_temp_path                   /bla-bla/tmp;

        }

        location / {
            root   /bl-la/;
            index  index.php index.html index.htm;
        }

location ~* ^.+\.(ver|ver|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|wav|bmp|rtf|js|avi|mpeg|mp3)$ {

                root   /bla-lba;
        }


    }

}








 




Copyright © Lexa Software, 1996-2009.