nginx下 minify的使用

在nginx下面使用minify和apache区别不大,但是重写规则需要改一下[shell]
rewrite ^/min/([a-z]=.*) /min/index.php?$1 last; [/shell]
如果这时候还不能加载相应的css可以这样修改php.ini[shell]
cgi.rfc2616_headers = 1[/shell]
修改为[shell]
cgi.rfc2616_headers = 0[/shell]
cgi.rfc2616_headers这个参数的解释[shell]
Tells PHP what type of headers to use when sending HTTP response code. If it’s set 0, PHP sends a Status: header that is supported by Apache and other web servers. When this option is set to 1, PHP will send » RFC 2616 compliant headers. Leave it set to 0 unless you know what you’re doing. [/shell]

Avatar photo

About Blackford

这是个最好的时代,这是个最坏的时代,这是个充满希望的春天,这是个令人绝望的冬天,我们前面什么都有,我们前面什么都没有。梦想,让我们一次次的走远,又一次次的回头,一个关于人生的梦想还在不断奔跑,带着喜悦和疼痛,不过一切才刚刚开始,并且直到今天也远远没有结束
This entry was posted in PHP服务器脚本, 架构运维. Bookmark the permalink.

发表评论

电子邮件地址不会被公开。 必填项已用*标注