I'd like to add a few extra types to nginx mime types, but I don't want to edit the default /etc/nginx/mime.types
as it would add some extra complexity to the deployment process.
If I add a types {...}
section to my nginx.conf
it will override all the other types that were declared with the include mime.types;
.
I've thought that I could write a location rule for the extensions of the files that I need to handle, but I suppose that there must be a cleaner way to achieve this.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…