在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]
nginx下 minify的使用
- Blackford
- 0