开发者

PHP's apache_setenv function causes 500 Internal Server Error

ap开发者_开发问答ache_setenv ( 'no-gzip', 1 )

I'm trying to disable gzip for a certain page's output, but only that page. This works fine on testing servers, but not the production server, which is running the same thing (CentOS and Apache), works on Ubuntu though.

Anyway, do you know why? Or is there some other alternative?

I was thinking of using ob_start () to put all output in a buffer, and then unzip it myself with a PHP function then call ob_end_flush ()... or would it not be gzipped until right before Apache sends it to the client?

Thanks for any help.


Please verify that php is running as a module rather than a cgi-extension and safe mode must be disabled.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜