(可尝试删除原文件再请求,如果能正常请求说明静态压缩配置成功) 注意:通过nginx指定压缩文件再附加压缩header头信息容易有兼容问题,部分浏览器会屏蔽请求并提示 net::ERR_CONTENT_DECODING_FAILED 错误,比如谷歌浏览器
1 Preface About NGINX NGINX® ("engine x") is a high performance, high concurrency web server excelling at large scale content delivery, web acceleration and protecting application containers. Its precise integration with modern operating systems allows unprecedented levels of efficiency even when ...
Syntax: error_log file | stderr | syslog:server=address[,parameter=value] | memory:size [debug | info | notice | warn | error | crit | alert | emerg]; Default: error_log logs/error.log error; Context: main, http, mail, stream, server, location Configures logging. Several logs c...