Nginx列目录conf文件配置
server { listen 80; server_name test.shnne.com; access_log /data/log/nginx/access_test_shnne.log; root /data/test/shnne; autoindex on; autoindex_exact_size off; autoindex_localtime on; location / { if ($request_filename ~* ^.*?\.(txt|doc|pdf|rar|gz|zip|docx|exe|xlsx|ppt|pptx)$){ add_header Content-Disposition: 'attachment;'; } } }
<< 上一篇
error while loading shared libraries: libpcap.so.1: cannot open shared object file: No such file or
下一篇 >>
网友留言(0 条)