nginx1.6下安装nginx_concat_module报400错误
来源:互联网 发布:网络教育录取时间 编辑:程序博客网 时间:2024/06/06 10:29
第一次安装都很顺利,第二次安装就出现访问合并链接出现400错误。
瞬间就跪了,果断google之,居然有前人也碰到这样的问题,有救了。
由于Nginx在新版本中,使用了标准的 MIME-Type:application/javascript。而在nginx_concat_module模块目前版本的代码中,写的是 application/x-javascript 的类型。
也就是模块认不到js文件了。。。
[root@tools-ops01-jz src]# grep javascript nginx_concat_module/ngx_http_concat_module.c ngx_string("application/x-javascript"),
因此,我们最好在向nginx添加该模块之前,修改nginx_concat_module的源代码文件ngx_http_concat_module.c,将application/x-javascript更改为application/javascript,然后再编译安装即可!
0 0
- nginx1.6下安装nginx_concat_module报400错误
- nginx 下安装nginx_concat_module报400错误
- nginx安装nginx_concat_module模块报400错误的问题
- nginx_concat_module 安装和配置
- nginx_concat_module 安装和配置
- CentOs下Nginx1.0.4安装
- linux下安装nginx1.0
- Linux下安装Nginx1.8.0
- Linux下Nginx1.8安装
- Linux下Nginx1.8安装
- centos下安装nginx1.8
- Linux下安装Nginx1.8
- nginx1.6编译安装
- nginx1.9 在centos7.2下报Failed to restart nginx.service: Unit nginx.service failed to load: No 。。错误
- Debian下编译安装NginX1.5
- ubuntu下nginx1.0.15的安装
- CentOS6.5下Nginx1.7.4安装记录
- centos6.5下安装nginx1.8.0
- 安卓之listview和textview争抢焦点的解决办法
- hadoop编程实例
- 使用Angular-Leaflet-directive获取select选中的值
- Linux下重启tomcat的shell脚本
- Unsupported major.minor version 51.0
- nginx1.6下安装nginx_concat_module报400错误
- Java 设计模式—单例模式
- 期待读全书——像外行一样思考,像专家一样实践
- ZOJ3862:Intersection
- 几种开放源码的TCPIP协议栈概述--LwIP,uIP,TinyTcp和uC/IP
- vijos 1404 遭遇战[spfa]
- SCALA 安装和 SACLA ECLIPSE PLUGIN安装
- 有关lower_bound()函数的使用
- HDU 2897 邂逅明下 (找规律)