Welcome! Log In Create A New Profile

Advanced

issue with `default_type` & `type` on 1.5.7

Jonathan Vanasco
January 05, 2014 08:14AM
I recently encountered an issue with a 1.5.7 branch on OSX. i did not check 1.5.8

The following code will set ALL css/js files as the default_type

include /usr/local/nginx/conf/mime.types;
default_type application/octet-stream;


The following code works as intended

default_type application/octet-stream;
include /usr/local/nginx/conf/mime.types;

I haven't had time to test on other versions.

This could be the intended behavior, but the docs don't suggest that. usually a default_type only applies when the real type can't be found.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

issue with `default_type` & `type` on 1.5.7

Jonathan Vanasco January 05, 2014 08:14AM

Re: issue with `default_type` & `type` on 1.5.7

Maxim Dounin January 09, 2014 08:20AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 197
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready