在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]
2023年五月 一 二 三 四 五 六 日 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 -
近期文章