Nginx������ĸ�������Σ�����ִ�� (http://tengine.taobao.org/book/chapter_02.html#id10)����д��һ�������ļ����ж��� if ($upstream_http_content_type ^* "text") ����ȴ�����Ч���Ұ����������ӡ��������������(text/css)�ġ�
Ȼ���Ҿ���ôҲ�벻ͨ��ʲô�����ˡ�
Ȼ�������ּ�ȥ����һ�� if ($upstream_http_content_type = "") ��ȴ������true������������
�Dz��Dz������е�nginx���������Էŵ�if����ȥ�İ�����̸�λ��ţ~~��л~~
-- Weibin Yao Thanks.
On 2013/10/19 20:30, Jones Zhong wrote:
Nginx锟斤拷锟斤拷锟斤拷母锟斤拷锟斤拷锟斤拷锟阶段o拷锟斤拷锟斤拷执锟斤拷 (http://tengine.taobao.org/book/chapter_02.html#id10)锟斤拷锟斤拷写锟斤拷一锟斤拷锟斤拷锟斤拷锟侥硷拷锟斤拷锟叫讹拷锟斤拷 if ($upstream_http_content_type ^* "text") 锟斤拷锟斤拷却锟斤拷锟筋不锟斤拷效锟斤拷锟揭帮拷锟斤拷锟斤拷锟斤拷锟斤拷锟接★拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟�(text/css)锟侥★拷
然锟斤拷锟揭撅拷锟斤拷么也锟诫不通锟斤拷什么锟斤拷锟斤拷锟剿★拷
然锟斤拷锟斤拷锟斤拷锟街硷拷去锟斤拷锟斤拷一锟斤拷 if ($upstream_http_content_type = "") 锟斤拷却锟斤拷锟斤拷锟斤拷true锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷
锟角诧拷锟角诧拷锟斤拷锟斤拷锟叫碉拷nginx锟斤拷锟斤拷锟斤拷锟斤拷锟皆放碉拷if锟斤拷锟斤拷去锟侥帮拷锟斤拷锟斤拷谈锟轿伙拷锟脚~锟斤拷谢~~
Rewrite
Access
Content
Log
if锟斤拷应锟斤拷锟斤拷Rewrite锟阶段★拷$upstream_xxx锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟紺ontent执锟叫阶讹拷锟矫碉拷锟斤拷锟斤拷锟接︼拷锟斤拷锟斤拷莶趴锟斤拷锟绞癸拷茫锟斤拷锟斤拷锟斤拷锟斤拷锟� Rewrite锟阶讹拷锟斤拷锟矫诧拷锟斤拷锟斤拷锟斤拷锟侥o拷一锟斤拷只锟斤拷锟节硷拷录锟斤拷锟斤拷锟斤拷志锟斤拷Log锟阶段诧拷锟斤拷锟矫得碉拷锟斤拷
-- Weibin Yao Thanks.
-- Weibin Yao Thanks.
On 2013/10/19 20:30, Jones Zhong wrote: