,  <br>user www www;<br>worker_processes 6;<br>worker_rlimit_nofile 32768;<br>pid /var/run/nginx.pid;<br>events {<br>worker_connections 32768;<br>use kqueue;<br>}<br><br>http {<br><br>limit_zone lconn $binary_remote_addr 10m;<br>
default_type application/octet-stream;<br>log_format main &#39;$remote_addr - $remote_user [$time_local] &quot;$request&quot; &#39; &#39;$status $body_bytes_sent &quot;$http_referer&quot; &#39; &#39;&quot;$http_user_agent&quot;&#39;; #&quot;$http_x_forwarded<br>
log_format shit &#39;$host $remote_addr - $remote_user [$time_local] &quot;$request&quot; &#39; &#39;$status $body_bytes_sent &quot;$http_referer&quot; &#39; &#39;&quot;$http_user_agent&quot;&#39;; #&quot;$http_x_for<br>client_header_timeout 600;<br>
client_body_timeout 600;<br>send_timeout 1200;<br>proxy_read_timeout 180;<br>proxy_connect_timeout 180;<br>proxy_send_timeout 180;<br>proxy_buffer_size 8k;<br>proxy_buffers 4 32k;<br>proxy_busy_buffers_size 64k;<br>proxy_temp_file_write_size 256k;<br>
gzip on;<br>gzip_min_length 1100;<br>gzip_buffers 4 32k;<br>gzip_types text/plain application/x-javascript text/css;<br>client_max_body_size 950m;<br>client_body_buffer_size 128k;<br>client_header_buffer_size 1k;<br>large_client_header_buffers 4 4k;<br>
sendfile on;<br>tcp_nopush on;<br>tcp_nodelay on;<br>output_buffers 1 32k;<br>postpone_output 1460;<br>lingering_time 30;<br>lingering_timeout 6;<br>reset_timedout_connection on;<br>keepalive_timeout 5;<br>optimize_server_names on;<br>
server_names_hash_bucket_size 64;<br>#access_log /var/log/nginx-access.log main;<br>include mime.types;<br>include virtual.conf;<br><br>server {<br>listen *:80;<br>server_name <a href="http://xxx.com">xxx.com</a><br>root /home/xxx.xom<br>
source_charset utf-8;<br>charset utf-8;<br>index index.php;<br><br>location ~ .php$ {fastcgi_pass unix:/home/<a href="http://xxx.com/run/fastcgi.sock">xxx.com/run/fastcgi.sock</a>;<br> fastcgi_index index.php;<br>
 fastcgi_param PHPRC &quot;/home/<a href="http://xxx.com/php">xxx.com/php</a>&quot;;<br> fastcgi_param SCRIPT_FILENAME /home/<a href="http://xxx.com/xxx.com$fastcgi_script_name">xxx.com/xxx.com$fastcgi_script_name</a>;<br>
 include fastcgi_params;<br> source_charset utf-8;<br> charset utf-8;<br>}<br>}<br><br>}<br><br><br><br><div class="gmail_quote">2011/4/8 greenh <span dir="ltr">&lt;<a href="mailto:greenh@gmail.com">greenh@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">,      (   ) nginx   fast-cgi cache      (gstat   100%)<br>
     ,  ,        4,5  ,     <br>
 ,     nginx      ?<br>
</blockquote></div><br>