yohoboys.conf 2.42 KB
server
{
      listen       80;
      server_name  boys.dev.yoho.cn;
      
      #access_log /nginx/logs/access_test_yoho_cn.log  combined;
      error_log  /nginx/logs/error_test_yoho_cn.log warn;
      
      root  D:/workspace/yohoboy.git.dev.yoho.cn/yohocms/www.yohoboys.com/public;

      # https
      #ssl on;
      #ssl_certificate //nginx/data/server.pem;
      #ssl_certificate_key /nginx/data/server.key;
      #ssl_session_timeout 10m;


     location / {
          index  index.html index-dev.php;
          if (!-f $request_filename){
              rewrite ^/(.+)$ /index-dev.php?$1& last;
          }
     }

     location ~ .*\.php?$ {
          fastcgi_pass 127.0.0.1:9000;
          fastcgi_index index-dev.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 ~ .*\.(html|xml)?$ {
     #    expires      1h;
     #}    
}

server
{
      listen       80;
      server_name  newboys.dev.yoho.cn hkboys.dev.yoho.cn apiboys.dev.yoho.cn;
      
      #access_log /nginx/logs/access_test_yoho_cn.log  combined;
      error_log  /nginx/logs/error_test_yoho_cn.log warn;
      
      root  D:/workspace/yohoboy.git.dev.yoho.cn/yohocms/new.yohoboys.com/public;

     location / {
          index  index.html index-dev.php;
          if (!-f $request_filename){
              rewrite ^/(.+)$ /index-dev.php?$1& last;
          }
     }

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

     location ~ .*/.svn/ {
         deny all;
     }

}

server
{
      listen       80;
      server_name  cmsres.dev.yoho.cn; 
      index index.php;
      #root   D:/workspace/yohocms.svn.dev.yoho.cn/yohocms/trunk/static;
      root   D:/workspace/yohostore.git.dev.yoho.cn/static/boygirls;
      #access_log /Data/logs/nginx/access_yohoinc.log  combined;
      #error_log  /Data/logs/nginx/error_yohoinc.log warn;

     location ~ .*/.svn/ {
         deny all;
     }

     #location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ {
     #    expires      30d;
     #}

     #location ~ .*\.(js|css)?$ {
     #    expires      1h;
     #}

}