Board logo

标题: [提问] gzip 没开启问题 [打印本页]

作者: tiajslwm    时间: 2018-11-6 15:23     标题: gzip 没开启问题

/www/wdlinux/apache/bin/httpd -l | grep deflate
也没有

localhost:~ junhyung$ curl -I xxx --compressed
HTTP/1.1 200 OK
Server: nginx/1.8.1
Date: Tue, 06 Nov 2018 07:09:26 GMT
Content-Type: text/html
Content-Length: 1008
Connection: keep-alive
Last-Modified: Tue, 06 Nov 2018 06:10:02 GMT
ETag: "3f0-579f8da2f84e2"
Accept-Ranges: bytes

如果添加
<IfModule mod_deflate.c>
DeflateCompressionLevel 7
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-httpd-
php
AddOutputFilter DEFLATE css js html htm gif jpg png bmp php
</IfModule>
这个代码 启动回报错
这么破呢




欢迎光临 WDlinux官方论坛 (http://www.wdlinux.cn/bbs/) Powered by Discuz! 7.2