首页 > 代码库 > nginx浏览pdf

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;
        }

nginx浏览pdf