localhost.conf 714 Bytes
server
{
      listen       80;
      server_name  localhost;
      
      #access_log /nginx/logs/access_test_yoho_cn.log  combined;
      error_log  /nginx/logs/error_test_yoho_cn.log warn;
      
      root  D:/opensource;

     location / {
          index  index.php index.html;
     }

     location ~ .*\.php?$ {
          fastcgi_pass 127.0.0.1:9000;
          fastcgi_index index.php;
          #fastcgi_param  PATH_INFO $fastcgi_script_name;
          fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;
          include fastcgi_params;
     }

     location ~ .*/.svn/ {
         deny all;
     }
  
     location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ {
         expires      1h;
     }
}