nginx升級到 0.8.53 之後,使用老的配置出現duplicate MIME type "text/html"問題的解決辦法
@for ever 2010-12-23
nginx升級後,用原來的配置啓動提示:
Starting nginx server (nginx): [warn]: duplicate MIME type "text/html" in /usr/local/nginx/conf/nginx.conf:56
找到第56行的配置是:
gzip_types text/plain text/html text/javascript text/xml text/css application/x-javascript application/xml;
解決辦法:
從配置文件中去掉text/html.