<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=KOI8-R" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Igor Sysoev :
<blockquote cite="mid:20070721161416.GJ32034@rambler-co.ru" type="cite"><br>
  <blockquote type="cite">
    <pre wrap="">,    ,   nginx !   
Apache,      -  ..    
     Fast-CGI :) ( ,   
  ,      /  
,    - 404).
    </pre>
  </blockquote>
  <pre wrap=""><!---->
    ?

  </pre>
</blockquote>
   ,       ,
    :<br>
<br>
nginx.conf:<br>
<br>
worker_processes 2;<br>
events {<br>
 worker_connections 1024;<br>
}<br>
http {<br>
 include /usr/local/nginx/conf/mime.types;<br>
 default_type application/octet-stream;<br>
 sendfile on;<br>
 tcp_nopush on;<br>
 tcp_nodelay on;<br>
 <br>
 client_header_timeout 30;<br>
 client_body_timeout 60;<br>
 send_timeout 60; <br>
<br>
 keepalive_timeout 15;<br>
 <br>
 connection_pool_size 256;<br>
 client_header_buffer_size 1k;<br>
 large_client_header_buffers 4 4k;<br>
 request_pool_size 4k;<br>
 client_max_body_size 16m; <br>
<br>
 postpone_output 1460;<br>
<br>
 access_log off;<br>
<br>
<br>
 server {<br>
 listen 80;<br>
 server_name localhost 172.16.0.5;<br>
 set $srv_root "/var/www/htdocs";<br>
<br>
<br>
 location ~* ^.+\.(gz|jpg|jpeg|gif|html|css|js|png|xml)$ {<br>
 root $srv_root;<br>
 expires 30d;<br>
 access_log off;<br>
 }<br>
<br>
 location / {<br>
 root $srv_root;<br>
 index index.php; <br>
 }<br>
<br>
 location ~ \.php$ {<br>
 root $srv_root;<br>
 index index.php;<br>
 fastcgi_pass 127.0.0.1:9999;<br>
 include conf/fastcgi_params.conf;<br>
 }<br>
<br>
 }<br>
}<br>
<br>
fastcgi_params.conf:<br>
<br>
fastcgi_index index.php;<br>
fastcgi_connect_timeout 15;<br>
fastcgi_send_timeout 300;<br>
fastcgi_read_timeout 300;<br>
<br>
fastcgi_param DOCUMENT_ROOT $srv_root;<br>
fastcgi_param SCRIPT_FILENAME $srv_root$fastcgi_script_name;<br>
fastcgi_param PATH_TRANSLATED $srv_root$fastcgi_script_name;<br>
<br>
fastcgi_param SCRIPT_NAME $fastcgi_script_name;<br>
fastcgi_param QUERY_STRING $query_string;<br>
<br>
fastcgi_param REQUEST_METHOD $request_method;<br>
fastcgi_param CONTENT_TYPE $content_type;<br>
fastcgi_param CONTENT_LENGTH $content_length;<br>
<br>
fastcgi_param REDIRECT_STATUS 200;<br>
fastcgi_param SERVER_ADDR $server_addr;<br>
fastcgi_param SERVER_PORT $server_port;<br>
fastcgi_param SERVER_PROTOCOL $server_protocol;<br>
fastcgi_param SERVER_SOFTWARE "nginx";<br>
fastcgi_param GATEWAY_INTERFACE "CGI/1.1";<br>
fastcgi_param SERVER_NAME $server_name;<br>
fastcgi_param REQUEST_URI $request_uri;<br>
fastcgi_param REMOTE_ADDR $remote_addr;<br>
fastcgi_param REMOTE_PORT $remote_port;<br>
<br>
<pre class="moz-signature" cols="72">-- 
Siava
WEB <a class="moz-txt-link-freetext" href="http://siava.ru">http://siava.ru</a></pre>
</body>
</html>