猪扒皮

2014年10月12日 | 标签:
server {
 server_name  www.xxx.com;
 root /data/www/www_xxx_dev/wwwroot;
 set $index 'index.html';
 set $store_file $request_filename;
 if ($uri ~ /$ ){
  set $store_file $request_filename$index;
  rewrite (.*) $1index.html last;
 }
 location / {
  root "/data/www/www_xxx_dev/wwwroot";
  index index.html;
  proxy_store on;
  proxy_temp_path "/data/www/www_xxx_dev/wwwroot";
  proxy_set_header Host www.xxx.com;
  proxy_set_header X-Real-IP $remote_addr;
  if ( !-e $request_filename ) {
   proxy_pass http://www.xxx.com;
  }
 }
}
目前还没有任何评论.


× 1 = eight