原因,IE9对文件的 content type很严格,如果用 txt/plain 就不会当css来解析
其它浏览器会自动转换。
由于我的网站使用 统一的css.php加载 所以解决方案如下:
location ~ css\.php$ {
proxy_pass http://$server_addr:81;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Content-Type "text/css; charset: utf-8";
#proxy_hide_header Content-Type;
}