e博客 精品推荐,你我共享

运维 | Nginx 配置限制访问指定域名

Nginx 配置限制访问指定域名 介绍 使用教程 记录几种方式,禁止指定来源网站的链接访问: 对于来路为 *.xxxx.com,全部返回 404 if ($http_referer ~* .*.xxxx.com){ return 404; } 对于来路为 xxxx.com 的链

Appleex 发布于 2023-09-13

运维 | Nginx 配置文件访问与下载

Nginx 配置文件访问与下载 介绍 因为服务器上堆积了很多文件,有时候需要查看或下载,每次都要到服务器很不方便。 可能有小伙伴会说可以使用一些文件工具或者搭建文件系统等等,不过我觉得看个人需求吧 本章节主要简单的介绍使用 nginx 托管文件,实现文件访问与下载。 使用 默认配置 初始化安装 ng

Appleex 发布于 2023-09-07

运维 | 了解 nginx 配置中 root 与 alias 的区别 | nginx

运维 | 了解 nginx 配置中 root 与 alias 的区别 | nginx 官方 root Sets the root directory for requests, For example, with the following configuration location /i/ {

Appleex 发布于 2023-09-04