The nginx concat module configuration page returns the 400 bad request, nginxconcat
This problem was not found in nginx of version 1.4.x, but encountered this problem in version 1.5.x.
In the new version, Nginx uses the standard MIME-Type: application/javascript. In the current code of the nginx_concat_module module, the type of application/x-javascript is written.
Find nginx-http-concat-master, line 14
Static ngx_str_t ngx_http_concat_default_types [] = {ngx_string ("application/x-javascript"), ngx_string ("text/css"), ngx_null_string };
Add ngx_string ("application/javascript") to the above Code, or change ngx_string ("application/x-javascript") to ngx_string ("application/javascript ").
# Modify static ngx_str_t ngx_http_concat_default_types [] = {ngx_string ("application/javascript"), ngx_string ("text/css"), ngx_null_string }; # Or # Add static ngx_str_t ngx_http_concat_default_types [] = {ngx_string ("application/x-javascript"), ngx_string ("application/javascript"), ngx_string ("text/css "), ngx_null_string };
Then OK