"报什么错误?######没报错######
你的详细的配置是什么样子的?
 
返回的HTTP码是什么?
######
 
          listen       81; 
 
          server_name  localhost; 
 
 
  server_info on; 
 
 
  server_admin shudu@taobao.com; ; 
 
 
 
 
 
          location / { 
 
 
      concat on; 
 
              root   html; 
 
              index  index.html index.htm; 
 
          } 
 
 
 
 
 
          #error_page  404              /404.html; 
 
 
 
 
 
          # redirect server error pages to the static page /50x.html 
 
          # 
 
          error_page   500 502 503 504  /50x.html; 
 
          location = /50x.html { 
 
              root   html; 
 
          } 
 
 
 
 
 
      } 
 
 
 
 
 
 
 
 
 
 
 
   110.84.193.39 - - [11/Dec/2011:21:26:50 +0800] "GET /??iCMS.js,jquery.js HTTP/1.1" 200 151 "-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.106 Safari/535.2" "-" 
 
 
  
 
 
 
 
  返回的内容是 Welcome to nginx! 
 
  iCMS.js,jquery.js  这两个文件是存在的 
 
 
 
 
 
  系统freeBSD 64位 
 
 
 
 
######把index.html删掉试试,或者把js文件放到一个没有index.html的目录######
 
 引用来自“shudu”的答案
 
 
   把index.html删掉试试,或者把js文件放到一个没有index.html的目录 
 
 
  
 
 把index.html删掉 或者放到别的目录就可以了
 
 
 
 
 还有个问题就是 你们的PPT里不是写
 
  
 worker_process auto;
 
 worker_cpu_affinity auto;
 
 我这样写不行
 
  
 nginx: [emerg] unknown directive "worker_process" in /usr/local/tengine/conf/nginx.conf:2
 
 
   服务器双XEON 4核的 
 
 
  
  
 ######
@shudu : 好的 谢谢 准备应用的生产环境了######1、ppt里写错了,应该是worker_processes。其实worker_processes和worker_cpu_affinity这两项在Tengine里可以不写或者注释掉,Tengine默认会根据你的CPU核数设置worker进程的个数和自动绑定CPU。 2、下一个版本的Tengine将不用删除index.html也能正常使用concat。 多谢反馈!######
@枯木 你用最新发布的Tengine-1.2.2版本吧。现在使用concat功能已经不需要删掉index.html了######好的,呵呵。能告诉我是什么网站在用吗?让我们团队高兴一下。不方便的话可以私信告诉我。######已经在用了 感觉网站变快了 非常给力"