雑多なブログ

音楽や語学、プログラム関連の話題について書いています

nginx: default_typeの設定

mimeタイプが判別できない場合に適用されるデフォルト値は、default_typeできます。default_typeのデフォルト値は text/plainです。

Syntax:  default_type mime-type;
Default:    
default_type text/plain;
Context:    http, server, location
Defines the default MIME type of a response. Mapping of file name extensions to MIME types can be set with the types directive.

nginx.org