ðòïåëôù 


  áòèé÷ 


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: fastcgi-pass



On Mon, Apr 02, 2007 at 05:50:52PM +0300, deniswork@xxxxxxxxxxxxx wrote:

> user www-data www-data;
> 
> worker_processes 4;
> 
> events {
>   worker_connections 4096;
>   use epoll;
> }
> 
> http {
>   include /usr/local/nginx/conf/mime.types;
>   default_type application/octet-stream;
>   access_log off;
> 
>   server_names_hash_max_size 64;
>   server_names_hash_bucket_size 64;
> 
>   client_body_buffer_size 128k;
>   client_body_temp_path /usr/local/nginx/client_body_temp;
>   client_header_buffer_size 2k;
> 
> 
>   client_header_timeout 3m;
>   client_body_timeout   3m;
>   send_timeout          3m;
>   send_lowat            12000;
>   output_buffers        1 32k;
>   postpone_output       1460;
> 
> 
>   client_max_body_size 1m;
>   keepalive_timeout 65;
>   large_client_header_buffers 2 4k;
>   sendfile on;
>   tcp_nodelay on;
>   tcp_nopush on;
>   
>   proxy_buffer_size 2k;
>   proxy_buffering off;
>   proxy_buffers 32 8k;
>   proxy_intercept_errors off;
>   proxy_redirect off;
>   proxy_connect_timeout 2;
>   proxy_read_timeout 120;
>   proxy_send_timeout 30;
>   proxy_temp_path /usr/local/nginx/proxy_temp;
> 
>   proxy_set_header X-Real-IP $remote_addr;
>   proxy_set_header Host $host;
>   proxy_set_header Connection close;
>   fastcgi_buffer_size 2k;
>   fastcgi_buffers 32 8k;
>   fastcgi_intercept_errors off;
>   fastcgi_connect_timeout 2;
>   fastcgi_read_timeout 120;
>   fastcgi_send_timeout 30;
>   fastcgi_temp_path /usr/local/nginx/fastcgi_temp;
> 
> 
> 
> 
> 
> 
>  server  {
>        listen 212.26.141.121:80;
>        server_name server.org www.server.org;
>        root /var/www/livemix.org;
> 
>        location / {
> 
>             fastcgi_index index.fcgi;
>             fastcgi_param SCRIPT_FILENAME 
> /var/www/livemix.org$fastcgi_script_name; 
>             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 REQUEST_URI $request_uri;
>             fastcgi_param REMOTE_ADDR $remote_addr;
>             fastcgi_param SERVER_ADDR $server_addr;
>             
>  
>         if (!-f $request_filename) {
>             fastcgi_pass 127.0.0.1:9999;
>             
>         }
>        }
> 
>  }
> }

é ?


-- 
éÇÏÒØ óÙÓÏÅ×
http://sysoev.ru



 




Copyright © Lexa Software, 1996-2009.