Nginx默认内容类型

won*_*bak 8 content-type nginx

我想NGINX发送一个位置的所有响应的内容类型application/xml:

我的配置基于文档http://wiki.nginx.org/HttpCoreModule#types:

 server {

      server_name my_name
      listen 8088;
      keepalive_timeout 5;

      location / { 
        proxy_pass http://myhost;

        types         { } 
        default_type  application/xml
     }   
   }
Run Code Online (Sandbox Code Playgroud)

但是服务器总是以内容类型"text/xml"发送.任何的想法?