Skip to content

Commit

Permalink
减少目录
Browse files Browse the repository at this point in the history
  • Loading branch information
ShayZhu1024 committed Sep 3, 2024
1 parent 7a4c0cb commit 32da1ff
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 22 deletions.
2 changes: 1 addition & 1 deletion nginx/1.web服务相关概念.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* 解析URL:浏览器解析URL以确定你想访问的资源。URL通常包括协议(如HTTP或HTTPS)、服务器地址和资源路径

### 域名解析(DNS查找)
* DNS解析 系统缓存->hosts文件->向DNS服务器查询(递归查询和迭代查询)
* DNS解析 hosts文件->系统缓存->向DNS服务器查询(递归查询和迭代查询)
* 获取IP地址:DNS服务器将域名映射到IP地址并返回给浏览器

### 建立连接
Expand Down
12 changes: 0 additions & 12 deletions nginx/5.3.nginx的https-rewrite-防盗链.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,18 +218,6 @@ redirect;
permanent;
#重写完成后以永久重定向方式直接返回重写后生成的新URL给客户端,由客户端重新发起请求,状态码:301


break;
#重写完成后,停止对当前URL在当前location中后续的其它重写操作,而后直接跳转至重写规则配置块之后
的其它配置;结束循环,建议在location中使用
#适用于一个URL一次重写


last;
#重写完成后,停止对当前URI在当前location中后续的其它重写操作,而后对新的URL启动新一轮重写检查,
不建议在location中使用
#适用于一个URL多次重写,要注意避免出现超过十次以及URL重写后返回错误的给用户

break 和 last 区别

rewrite指令中的break和last都属于服务器内部跳转,客户端链接地址不变,客户端无感知
Expand Down
2 changes: 1 addition & 1 deletion nginx/7.nginx的反向代理.md
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ stream { #定义stream相关的服务;Context:main

  server {
  listen 2222;
  proxy 10.0.0.8:22; # 只实现四层代理,无负载均衡功能
  proxy_pass 10.0.0.8:22; # 只实现四层代理,无负载均衡功能
  }

}
Expand Down
8 changes: 0 additions & 8 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,6 @@
- [1.ansible安装和常见模块](./ansible/1.ansible安装和常见模块.md)


## zabbix

- [1.zabbix介绍和部署](./zabbix/1.zabbix介绍和部署.md)








0 comments on commit 32da1ff

Please sign in to comment.