--- UUID: 20230201150447 title: 2023-02-01 date created: 2023-02-01 15:04 aliases: null tags: - diary date updated: 2023-02-01 15:04 --- ## nginx MIME types 图片下载和显示的问题 [Module ngx\_http\_core\_module](http://nginx.org/en/docs/http/ngx_http_core_module.html#types) >Maps file name extensions to MIME types of responses. Extensions are case-insensitive. Several extensions can be mapped to one type [14.04 - Nginx downloads file, not displaying the content - Ask Ubuntu](https://askubuntu.com/questions/928631/nginx-downloads-file-not-displaying-the-content) ```nginx location /32d3ca5e23f4ccf1e4c8660c40e75f33 { types {} default_type image/png; alias /data/fanglixing/codena/A.png; index index.html index.htm; } ``` [nginx访问静态文件不下载\_51CTO博客\_nginx配置访问静态文件](https://blog.51cto.com/u_5650011/5389162) https://code-temp.debugx.vip/32d3ca5e23f4ccf1e4c8660c40e75f33