首页  >  问答  >  正文

nginx如何处理自定义的content-type

现在有一个文件格式是自定义的,但是设置nginx.conf里对该格式后缀处理没有生效,怎么样让nginx支持自定义的content-type?

淡淡烟草味淡淡烟草味2713 天前639

全部回复(1)我来回复

  • ringa_lee

    ringa_lee2017-05-16 17:27:10

    types {
      application/x-my-type .myext;
    }
    

    不知道你是怎么配置的,又是怎么没生效的。

    回复
    0
  • 取消回复