@@ -91,7 +91,7 @@ nginx-1.14.0 是 Nginx 的 windows 环境的 1.14.0 官方版本。之所以把
91
91
2 . 配置 hosts:` 127.0.0.1 www.demo01.com `
92
92
3 . 在浏览器中访问:www.demo01.com
93
93
94
- ![ img] ( images\ nginx-demo01.png )
94
+ ![ img] ( https://raw.githubusercontent.com/dunwu/nginx-tutorial/master/examples/ images/ nginx-demo01.png)
95
95
96
96
### Demo02 - 负载均衡示例
97
97
@@ -111,7 +111,7 @@ nginx-1.14.0 是 Nginx 的 windows 环境的 1.14.0 官方版本。之所以把
111
111
112
112
如图所示:三次访问的端口号各不相同,说明三个服务器各自均有不同机率(基于权重)被访问。
113
113
114
- ![ img] ( images\ nginx-demo02.png )
114
+ ![ img] ( https://raw.githubusercontent.com/dunwu/nginx-tutorial/master/examples/ images/ nginx-demo02.png)
115
115
116
116
### Demo03 - 多 webapp 示例
117
117
@@ -137,7 +137,7 @@ Nginx 配置文件:[demo03.conf](nginx-1.14.0/conf/conf.d/demo03.conf)
137
137
138
138
如图所示:三次访问的 context 和端口号各不相同。说明 Nginx 根据不同的 context 将请求分发到指定的服务器上。
139
139
140
- ![ img] ( images\ nginx-demo03.png )
140
+ ![ img] ( https://raw.githubusercontent.com/dunwu/nginx-tutorial/master/examples/ images/ nginx-demo03.png)
141
141
142
142
### Demo04 - 前后端分离示例
143
143
@@ -169,7 +169,7 @@ Nginx 配置文件:[demo04.conf](nginx-1.14.0/conf/conf.d/demo04.conf)
169
169
170
170
效果图:
171
171
172
- ![ img] ( images\ nginx-demo04.png )
172
+ ![ img] ( https://raw.githubusercontent.com/dunwu/nginx-tutorial/master/examples/ images/ nginx-demo04.png)
173
173
174
174
按 F12 打开浏览器控制台,输入用户名/密码(admin/123456)执行登录操作。如下图所示,可以看到登录后的访问请求被转发到了 Nginx 配置的服务器地址。
175
175
@@ -199,7 +199,7 @@ Nginx 配置文件:[demo05.conf](nginx-1.14.0/conf/conf.d/demo05.conf)
199
199
200
200
效果图如下:
201
201
202
- ![ img] ( images\ nginx-demo05.png )
202
+ ![ img] ( https://raw.githubusercontent.com/dunwu/nginx-tutorial/master/examples/ images/ nginx-demo05.png)
203
203
204
204
### Demo06 - 静态站点示例
205
205
@@ -220,4 +220,4 @@ Nginx 中的配置要点:
220
220
221
221
效果图如下:
222
222
223
- ![ img] ( images\ nginx-demo06.png )
223
+ ![ img] ( https://raw.githubusercontent.com/dunwu/nginx-tutorial/master/examples/ images/ nginx-demo06.png)
0 commit comments