环境:OS X,
nginx-http-concat 个 nginx proxy_pass 同时开启时 配置如下: server { listen 8080; server_name localhost; autoindex on;
location / {
root /Project;
index *;
proxy_next_upstream error timeout http_500 http_502 http_503 http_504;
proxy_set_header Connection "";
proxy_pass http://0.0.0.0:3000;
}
location /lib/ {
concat on;
concat_max_files 20;
}
}
使用expree后,127.0.0.1:3000/lib/下的js文件都提示404,将concat配置放到第一个location里面,合并还是无效 求教使用心得