NGINX ========== .. toctree:: :maxdepth: 2 :caption: 目录: 日志 SSL 漏洞修复 <漏洞修复> 常用配置 ----------- 不允许访问某个地址 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. code-block:: nginx location /your/path { deny all; } pdf文件链接使用文件下载的方式 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. code-block:: nginx location / { alias /home/chenjie/www/; autoindex on; if ($request_uri ~* \.pdf$) { add_header Content-Disposition "attachment"; add_header Content-Type application/octet-stream; } }