nginx浏览pdf

 location ~/M00{
                # root  /fdfs/storage/data;
                #
                 if ($request_filename ~* ^.*?.(pdf)$){
                        add_header Content-Type 'application/pdf;';
                }

                 root /opt/fastdfs_storage_data/data;
                 ngx_fastdfs_module;
        }

原文地址:https://www.cnblogs.com/zhaofeng555/p/5828113.html