文章目錄
- 四層負載均衡
- 四層負載均衡特點
- 查看四層負載均衡語法
- 四層負載均衡配置
- 優化配置文件
- 四層負載均衡日志配置
- nginx的TCP負載均衡---端口轉發
- 動靜分離
- 單臺的動靜分離
- 多臺機器動靜分離
- 做動靜分離和資源隔離的網站。
- 一、動靜分離的網站
-
- 1)環境準備
- 1.靜態資源
- 1.1.上傳靜態資源
- 1.2.配置靜態資源網站
- 1.3.本地hosts訪問
- 2.配置動態資源
- 2.1.安裝tomcat
- 2.2.配置動態資源網站
- 2.3.本地hosts訪問
- 3.負載均衡設置
- 3.1創建站點目錄并授權
- 3.2.編輯html文件
- 3.3配置負載均衡文件
- 3.4本地hosts訪問
- 二、資源分離的網站
- 1.準備環境
- 2.配置web01服務器
- 2、創建站點目錄
- 3、訪問測試
- 3.配置web02服務器
- 2、創建站點文件
- 3、訪問測試
- 4.配置web03服務器
- 2、創建站點文件
- 3、訪問測試
- 5.配置負載均衡
- 2、訪問測試
- Rewrite
- rewrite概述
- rewrite使用場景
- rewrite配置語法
- rewrite標記 flag
- last和break的區別
- redirect和permanent的區別
- rewrite規則匹配實例
- 用戶訪問`/abc/1.html`實際上真實訪問的是`/ccc/bbb/2.html`
- 用戶訪問`/2018/ccc/2.html`實際上真實訪問的是 `/2014/ccc/bbb/2.html`
- 用戶訪問`/test`實際上真實訪問的是`www.baidu.com`
- 用戶訪問 couese-11-22-33.html 實際上真實訪問的是 /course/11/22/33/course_33.html
- 將http請求跳轉到https
- rewrite偽靜態實例
- 搭建discuz論壇
- 配置hosts,訪問論壇,發表帖子
- 配置rewrite偽靜態
- rewrite全局變量
- rewrite可以開啟日志
- rewrite規則補充
- rewrite匹配的優先級
- uri和url的區別
四層負載均衡
1、四層+七層來做負載均衡,四層可以保證七層的負載均衡的高可用性;
2、負載均衡可以做端口轉發
3.四層可以做:mysql讀從庫的負載均衡 跳板機的端口映射
四層負載均衡特點
1
>、四層負載均衡僅能轉發TCP/IP協議、UDP協議、通常用來轉發端口,如:tcp/22、udp/53;
2
>、四層負載均衡可以用來解決七層負載均衡端口限制問題;(七層負載均衡最大使用65535個端口號)
3
>、四層負載均衡可以解決七層負載均衡高可用問題;(多臺后端七層負載均衡能同事的使用)
4
>、四層的轉發效率比七層的高得多,但僅支持tcp/ip協議,不支持http和https協議;
5
>、通常大并發場景通常會選擇使用在七層負載前面增加四層負載均衡。
查看四層負載均衡語法
stream
{upstream backend
{server backend1.example.com:12345 weight
=5
;server 127.0.0.1:12345 max_fails
=3 fail_timeout
=30s
;}server
{listen 12345
;proxy_connect_timeout 1s
;proxy_timeout 3s
;proxy_pass backend
;}
}
四層負載均衡配置
[root@lb4 nginx
]
events
{worker_connections 1024
;
}include /etc/nginx/conf.c/*.conf
;http
{ ...
}
[root@lb4 nginx
]
[root@lb4 nginx
]
stream
{upstream lbserver
{server 172.16.1.4:8080
;server 172.16.1.5:80
;}server
{listen 80
;proxy_connect_timeout 1s
;proxy_timeout 3s
;proxy_pass lbserver
;}
}
[root@lb4 nginx
]
[root@lb4 nginx
]
優化配置文件
[root@Nginx ~
]
proxy_set_header Host
$http_host;
proxy_set_header X-Real-IP
$remote_addr;
proxy_set_header X-Forwarded-For
$proxy_add_x_forwarded_for;proxy_connect_timeout 30
;
proxy_send_timeout 60
;
proxy_read_timeout 60
;proxy_buffering on
;
proxy_buffer_size 32k
;
proxy_buffers 4 128k
;
四層負載均衡日志配置
[root@lb4 nginx
]
stream
{log_format main
'$remote_addr $remote_port - [$time_local] $status $protocol ''"$upstream_addr" "$upstream_bytes_sent" "$upstream_connect_time"' ;access_log /var/log/nginx/lb4_access.log main
;upstream lbserver
{server 172.16.1.4:80
;server 172.16.1.5:80
;}server
{listen 80
;proxy_connect_timeout 1s
;proxy_timeout 3s
;proxy_pass lbserver
;}
}
nginx的TCP負載均衡—端口轉發
stream
{
upstream ssh_7
{server 172.16.1.7:22
;}server
{listen 5555
;proxy_pass ssh_7
;}
}
stream
{upstream mysql_51
{server 172.16.1.51:3306
;server 172.16.1.52:3306
;server 172.16.1.53:3306
;server 172.16.1.54:3306
;server 172.16.1.55:3306
;server 172.16.1.56:3306
;server 172.16.1.57:3306
;}server
{listen 6666
;proxy_pass mysql_51
;}
}
mkdir /etc/nginx/stream.d
[root@lb01 stream.d
]
stream
{upstream mysql_conn
{server 172.16.1.51:3306
;}server
{listen 33060
;proxy_pass mysql_conn
;}
}
[root@lb01 stream.d
]
[root@db01 ~
]
動靜分離
動:動態頁面(php、python)
靜:靜態頁面(html、gif)CDN
(可以提高訪問頁面或者圖片的速度
)動靜分離,通過中間件將動靜分離和靜態請求進行分離;
通過中間件將動態請求和靜態請求分離,可以建上不必要的請求消耗,同事能減少請求的延時。
通過中間件將動態請求和靜態請求分離
單臺的動靜分離
[root@web01 conf.d
]
server
{listen 80
;server_name blog.linux.com
;location /
{root /code/wordpress
;index index.php
;}location ~* \.jpg$
{root /code/images
;}location ~* \.php$
{root /code/wordpress
;fastcgi_pass 127.0.0.1:9000
;fastcgi_param SCRIPT_FILENAME
$document_root$fastcgi_script_name;include fastcgi_params
;}
}
[root@web01 conf.d
]
方式一:把文件挪到/code/images/
cp -r /code/wordpress/wp-content /code/images/
方式二:做軟連接
cd /code
ln -s wordpress images
多臺機器動靜分離
[root@web01 conf.d
]
server
{listen 80
;server_name dj.linux.com
;location ~* \.
(jpg
|png
|gif
)${root /code/picture;}
}
[root@web01 conf.d
]
[root@web01 conf.d
]
[root@web01 conf.d
]
[root@web01 picture
]
[root@web02 code
]
[root@web02 code
]
[root@web02 webapps
]
[root@web02 webapps
]
<%@ page language
="java" import
="java.util.*" pageEncoding
="utf-8"%
>
<HTML
><HEAD
><TITLE
>JSP Page
</TITLE
></HEAD
><BODY
><%Random rand
= new Random
();out.println
("<h1>隨機數:<h1>");out.println
(rand.nextInt
(99
)+100
);%
></BODY
>
</HTML
>
[root@web02 webapps
]
http://10.0.0.8:8080/java_test.jsp
[root@lb01 conf.d
]
upstream jt
{server 172.16.1.7:80
;
}
upstream dt
{server 172.16.1.9:8080
;
}server
{listen 80
;server_name dj.linux.com
;location /
{root /code/dj
;index index.html
;}location ~* \.
(jpg
|gif
|png
)$
{proxy_pass http://jt
;proxy_set_header HOST
$http_host;}location ~ \.jsp$
{proxy_pass http://dt
;proxy_set_header HOST
$http_host;}
}
[root@lb01 conf.d
]
http://dj.linux.com/java_test.jsp
http://dj.linux.com/1.jpg
[root@lb01 conf.d
]
[root@lb01 conf.d
]
<html lang
="en">
<head
><meta charset
="UTF-8" /
><title
>測試ajax和跨域訪問
</title
><script src
="http://libs.baidu.com/jquery/2.1.4/jquery.min.js"></script
>
</head
>
<script type
="text/javascript">
$(document).ready
(function
(){$.ajax
({type:
"GET",url:
"http://dj.linux.com/java_test.jsp",success: function
(data
){$("#get_data").html
(data
)},error: function
() {alert
("哎呦喂,失敗了,回去檢查你服務去~");}});
});
</script
><body
><h1
>測試動靜分離
</h1
><img src
="http://dj.linux.com/1.gif"><div id
="get_data"></div
></body
>
</html
>
[root@lb01 conf.d
]
做動靜分離和資源隔離的網站。
一、動靜分離的網站
0.準備環境
1)環境準備
主機作用服務地址
| lb01 | 負載均衡 | nginx proxy | 172.16.1.5 |
| web01 | 靜態資源 | nginx static | 172.16.1.7 |
| web02 | 動態資源 | tomcat server | 172.16.1.8 |
1.靜態資源
1.1.上傳靜態資源
[root@web01 ~
]
[root@web01 ~
]
[root@web01 ~
]
[root@web01 picture
]
-rw-r--r-- 1 www www 746368 May 6 16:51 1.jpg
1.2.配置靜態資源網站
[root@web01 conf.d
]
server
{listen 80
;server_name linux12.dj.com
;location ~* \.
(jpg
|png
|mp4
|gif
)$
{root /yeg/picture
;}
}
[root@web01 ~
]
1.3.本地hosts訪問
1.本地配置hosts192.168.15.7 linux12.dj.com2、訪問靜態資源http://linux12.dj.com/1.jpg
2.配置動態資源
2.1.安裝tomcat
[root@web02 ~
]
2.2.配置動態資源網站
[root@web02 ~
][root@web02 webapps
]
[root@web02 webapps
]
<%@ page language
="java" import
="java.util.*" pageEncoding
="utf-8"%
>
<HTML
><HEAD
><TITLE
>測試動態的資源
</TITLE
></HEAD
><BODY
><%Random rand
= new Random
();out.println
("<h1>隨機數:<h1>");out.println
(rand.nextInt
(99
)+100
);%
></BODY
>
</HTML
>[root@web01 ~
]
2.3.本地hosts訪問
1、配置本地hosts192.168.15.8 linux12.dj.com2、訪問動態資源http://linux12.dj.com:8080/java_test.jsp
3.負載均衡設置
3.1創建站點目錄并授權
[root@lb01 opt
]
[root@lb01 opt
]
3.2.編輯html文件
[root@lb01 ~
]
<head
><meta charset
="UTF-8" /
><title
>測試ajax和跨域訪問
</title
><script src
="http://libs.baidu.com/jquery/2.1.4/jquery.min.js"></script
>
</head
>
<script type
="text/javascript">
$(document).ready
(function
(){$.ajax
({type:
"GET",url:
"http://linux12.dj.com/java_test.jsp",success: function
(data
){$("#get_data").html
(data
)},error: function
() {alert
("小姐姐,斷網了,重新檢查網絡再來哦~");}});
});
</script
><body
><h1
>測試動靜分離---霉霉
</h1
><img src
="http://linux12.dj.com/1.jpg"><div id
="get_data"></div
></body
>
</html
>
3.3配置負載均衡文件
[root@lb01 conf.d
]
server
{listen 80
;server_name linux12.dj.com
;location /
{root /yeg/dj
;index index.html
;}location ~* \.
(jpg
|png
|gif
)$
{proxy_pass http://192.168.15.7
;include proxy_params
;}location ~* \.
(php
|jsp
)$
{proxy_pass http://192.168.15.8:8080
;include proxy_params
;}
}
[root@web01 ~
]
3.4本地hosts訪問
1、配置本地hosts192.168.15.5 linux12.dj.com
二、資源分離的網站
1.準備環境
主機IP主機角色條件
| web01 | 192.168.15.7 | Android頁面 | 關閉防火墻和selinux |
| web02 | 192.168.15.8 | iPhone頁面 | 關閉防火墻和selinux |
| web03 | 192.168.15.9 | PC端頁面 | 關閉防火墻和selinux |
| lb01 | 192.168.15.5 172.16.1.5 | 負載均衡 | 關閉防火墻和selinux |
2.配置web01服務器
[root@web01 conf.d
]
server
{listen 80
;server_name linux12.dj.com
;charset utf8
;location /
{root /yang/android
;index index.html
;}
}
[root@web01 ~
]
2、創建站點目錄
[root@web01 ~
]
[root@web01 ~
]
[root@web01 ~
]
3、訪問測試
192.168.15.7 linux12.dj.com
3.配置web02服務器
1、配置nginx
[root@web02 conf.d
]
server
{listen 80
;server_name linux12.dj.com
;charset utf8
;location /
{root /yang/iphone
;index index.html
;}
}
[root@web01 ~
]
2、創建站點文件
[root@web02 ~
]
[root@web02 ~
]
[root@web02 ~
]
3、訪問測試
192.168.15.8 linux12.dj.com
4.配置web03服務器
[root@web03 conf.d
]
server
{listen 80
;server_name linux12.dj.com
;charset utf8
;location /
{root /yang/pc
;index index.html
;}
}
[root@web01 ~
]
2、創建站點文件
[root@web03 ~
]
[root@web03 ~
]
[root@web03 ~
]
3、訪問測試
192.168.15.9 linux12.dj.com
5.配置負載均衡
[root@lb01 conf.d
]
upstream android
{server 192.168.15.7:8081
;
}upstream iphone
{server 192.168.15.8:8082
;
}upstream pc
{server 192.168.15.9:8083
;
}server
{listen 80
;server_name linux12.dj.com
;location /
{if ($http_user_agent ~*
"Android") { proxy_pass http://android
; }if ($http_user_agent ~*
"iPhone") { proxy_pass http://iphone
; }if ($http_user_agent ~*
"Trident") { return 403
; }proxy_pass http://pc
; }
}
[root@lb01 conf.d
]
server
{listen 80
;server_name linux12.dj.com
;location /
{if ($http_user_agent ~*
"Android") { proxy_pass http://192.168.15.7
; }if ($http_user_agent ~*
"iPhone") { proxy_pass http://192.168.15.8
; }if ($http_user_agent ~*
"WOW64") { return 403
; }proxy_pass http://192.168.15.9
; include proxy_params
;}
}
[root@web01 ~
]
2、訪問測試
192.168.15.5 yang.sj.com
Rewrite
rewrite概述
Rewrite主要實現url地址重寫,以及重定向,就是把傳入web的請求重定向到其他url的過程。
rewrite使用場景
1、地址跳轉,用戶訪問www.drz.com這個URL是,將其定向至一個新的域名mobile.drz.com
2、協議跳轉,用戶通過http協議請求網站時,將其重新跳轉至https協議方式
3、偽靜態,將動態頁面顯示為靜態頁面方式的一種技術,便于搜索引擎的錄入,同時建上動態URL地址對外暴露過多的參數,提升更高的安全性。
4、搜索引擎,SEO優化依賴于url路徑,好記的url便于智齒搜索引擎錄入
rewrite配置語法
Syntax: rewrite regex replacement
[flag
];
Default: —
Context: server, location,
if
rewrite ^
(.*
)$ /page/404.html last
;
rewrite標記 flag
flag作用
| last | 本條規則匹配完成后,停止匹配,不再匹配后面的規則 |
| break | 本條規則匹配完成后,停止匹配,不再匹配后面的規則 |
| redirect | 返回302臨時重定向,地址欄會顯示跳轉后的地址 |
| permanent | 返回301永久重定向,地址欄會顯示跳轉后的地址 |
last和break的區別
[root@web01 conf.d
]
server
{listen 80
;server_name rw.linux.com
;root /code/rewrite
;location ~ ^/break
{rewrite ^/break /test/
break;}location ~ ^/last
{rewrite ^/last /test/ last
;}location /test/
{default_type application/json
;return 200
"ok";}
}
[root@web01 conf.d
]break 只要匹配到規則,就回去本地路徑目錄中尋找請求的文件;
last 匹配到規則,跳轉后沒有內容,則帶著跳轉后的請求,重新的向server發起一次請求break請求:1.請求rw.linux.com/break;2.首先,會去查找本地的/code/rewrite/test/index.html;3.如果找到了,則返回/code/rewrite/test/index.html內容;4.如果沒有找到則返回404,找到目錄卻沒有主頁,則返回403;last請求:1.請求rw.linux.com/last
;2.首先,會去查找本地的/code/rewrite/test/index.html;3.如果找到了,則返回/code/rewrite/test/index.html內容;4.如果沒找到,會帶著新跳轉的URI再向server發起一次請求,請求rw.linux.com/test
;5.如果匹配到新的location,則返回該location匹配的內容;6.如果沒有匹配到新的,則再返回404或403;共同點:break和last匹配到之后,不再向下匹配
redirect和permanent的區別
[root@web01 conf.d
]
server
{listen 80
;server_name rw.linux.com
;root /code/rewrite
;location /test
{rewrite ^
(.*
)$ http://www.mumusir.com redirect
;}
}redirect:每次請求都會詢問服務器,是否跳轉,如果服務器不可用,則跳轉失敗
permanent:請求一次后,會記錄跳轉的地址,以后不再詢問,直接跳轉,通過瀏覽器緩存記錄
rewrite規則匹配實例
1、通過192.168.15.7/index/1/2/3/4/5/6.html 訪問更目錄下的index-1-2-3-4-5-6.html
server
{listen 80
;server_name _
;root /www/resources
;location /
{rewrite ^/index/
([0-9
])/
([0-9
])/
([0-9
])/
([0-9
])/
([0-9
])/
([0-9
]) /index-
$1-
$2-
$3-
$4-
$5-
$6.html
break;}
}2、使用192.168.15.7/jd訪問www.jd.com
server
{listen 80
;server_name _
;root /www/resources
;location /
{rewrite ^/
(.*
) http://www.
$1.com redirect
;}
}3、根目錄有index-test.html和xxx-abc.html, 怎樣通過192.168.15.7/index/test訪問index-test.html, 使用192.168.15.7/xxx/abc訪問xxx-abc.html
server
{listen 80
;server_name _
;root /www/resources
;location /
{rewrite ^/
(.*
)/
(.*
) /
$1-
$2.html
break;}}
rewrite
[匹配規則
] [轉發內容
] flag
nginx只支持簡單正則,高級正則不支持。
用戶訪問/abc/1.html實際上真實訪問的是/ccc/bbb/2.html
[root@web01 conf.d
]
server
{listen 80
;server_name rw.linux.com
;root /code
;location ~ /abc
{rewrite ^
(.*
)$ /ccc/bbb/2.html redirect
;}
}location ~ /abc
{rewrite /abc/
(.*
)\.html /ccc/bbb/
$1.html redirect
;}
用戶訪問/2018/ccc/2.html實際上真實訪問的是 /2014/ccc/bbb/2.html
[root@web01 conf.d
]
[root@web01 conf.d
]
server
{listen 80
;server_name rw.linux.com
;root /code
;location ~ /2018
{rewrite /2018/ccc/2.html /2014/ccc/bbb/2.html redirect
;}
}location ~ /2018
{rewrite /2018/
(.*
) /2014/
$1 redirect
;}
用戶訪問/test實際上真實訪問的是www.baidu.com
server
{listen 80
;server_name rw.linux.com
;root /code
;location ~ /test
{rewrite
(.*
) https://www.baidu.com redirect
;}
}
用戶訪問 couese-11-22-33.html 實際上真實訪問的是 /course/11/22/33/course_33.html
[root@web01 conf.d
]
[root@web01 conf.d
]
[root@web01 conf.d
]
server
{listen 80
;server_name rw.linux.com
;root /code
;location /
{rewrite ^/
(.*
)-
(.*
)-
(.*
)-
(.*
).html /
$1/
$2/
$3/
$4/
$1_$4.html redirect
;}
}
將http請求跳轉到https
server
{listen 80;server_name www.mumusir.com
;return 302 https://www.mumusir.com
;
}http://www.mumusir.com --
> https://www.mumusir.comserver
{listen 443
;server_name www.mumusir.com
;ssl on
;ssl
...... *.key
;ssl
..... *.crt
;
}
rewrite偽靜態實例
搭建discuz論壇
[root@web01 ~
]
[root@web01 code
]
[root@web01 code
]
[root@web01 code
]
[root@web01 conf.d
]
server
{listen 80
;server_name discuz.linux.com
;location /
{root /code/discuz/upload
;index index.php
;}location ~* \.php$
{root /code/discuz/upload
;fastcgi_pass 127.0.0.1:9000
;fastcgi_param SCRIPT_FILENAME
$document_root$fastcgi_script_name;include fastcgi_params
;}
}
[root@db02 ~
]
。。。。。。MariaDB
[(none
)]> create database discuz charset utf8
;
Query OK, 1 row affected
(0.00 sec
)MariaDB
[(none
)]> grant all on discuz.* to discuz@
'172.16.1.%' identified by
'123456';
Query OK, 0 rows affected
(0.04 sec
)MariaDB
[(none
)]>
配置hosts,訪問論壇,發表帖子
配置rewrite偽靜態
[root@web01 conf.d
]server
{listen 80
;server_name discuz.linux.com
;location /
{root /code/discuz/upload
;index index.php
;rewrite ^
([^\.
]*
)/topic-
(.+
)\.html$
$1/portal.php?mod
=topic
&topic
=$2 last
;rewrite ^
([^\.
]*
)/article-
([0-9
]+
)-
([0-9
]+
)\.html$
$1/portal.php?mod
=view
&aid
=$2&page
=$3 last
;rewrite ^
([^\.
]*
)/forum-
(\w+
)-
([0-9
]+
)\.html$
$1/forum.php?mod
=forumdisplay
&fid
=$2&page
=$3 last
;rewrite ^
([^\.
]*
)/thread-
([0-9
]+
)-
([0-9
]+
)-
([0-9
]+
)\.html$
$1/forum.php?mod
=viewthread
&tid
=$2&extra
=page%3D
$4&page
=$3 last
;rewrite ^
([^\.
]*
)/group-
([0-9
]+
)-
([0-9
]+
)\.html$
$1/forum.php?mod
=group
&fid
=$2&page
=$3 last
;rewrite ^
([^\.
]*
)/space-
(username
|uid
)-
(.+
)\.html$
$1/home.php?mod
=space
&$2=$3 last
;rewrite ^
([^\.
]*
)/blog-
([0-9
]+
)-
([0-9
]+
)\.html$
$1/home.php?mod
=space
&uid
=$2&do
=blog
&id
=$3 last
;rewrite ^
([^\.
]*
)/
(fid
|tid
)-
([0-9
]+
)\.html$
$1/archiver/index.php?action
=$2&value
=$3 last
;rewrite ^
([^\.
]*
)/
([a-z
]+
[a-z0-9_
]*
)-
([a-z0-9_\-
]+
)\.html$
$1/plugin.php?id
=$2:$3 last
;if (!-e
$request_filename) {return 404
;}}location ~* \.php$
{root /code/discuz/upload
;fastcgi_pass 127.0.0.1:9000
;fastcgi_param SCRIPT_FILENAME
$document_root$fastcgi_script_name;include fastcgi_params
;}
}[root@web01 conf.d
]
http://discuz.linux.com/thread-1-1-1.htmlrewrite ^
([^\.
]*
)/thread-
([0-9
]+
)-
([0-9
]+
)-
([0-9
]+
)\.html$
$1/forum.php?mod
=viewthread
&tid
=$2&extra
=page%3D
$4&page
=$3 last
;discuz.linux.com/thread-1-1-1.html
discuz.linux.com/forum.php?mod
=viewthread
&tid
=1
&extra
=page%3D1
&page
=1
rewrite全局變量
$server_name
server
{listen 80
;server_name rw.linux.com
;root /code
;rewrite ^
(.*
)$ https://
$server_name;
}$request_filename
$request_uri server
{listen 80
;server_name rw.linux.com
;root /code
;rewrite ^
(.*
)$ https://
$server_name$request_uri;
}
server
{listen 80
;server_name www.baidu.com baidu.com
;root /code
;if ($http_host = baidu.com
) {rewrite
(.*
) http://www.baidu.com
;}
}
server
{listen 80
;server_name baidu.com
;rewrite
(.*
) http://www.baidu.com
;}
server
{listen 80
;server_name www.baidu.com
;root /code
;
}
rewrite可以開啟日志
error_log /var/log/nginx/error.log notice
;
rewrite_log on
;
rewrite規則補充
rewrite匹配的優先級
1.先執行server模塊的rewrite指令
2.其次執行location匹配規則
3.最后執行location里面的rewriteserver
{listen 80
;server_name rw.linux.com
;location /test
{rewrite ^
(.*
)$ http://www.mumusir.com
;}location
=/
{rewrite ^
(.*
)$ http://www.baidu.com
;}
}
uri和url的區別
http://192.168.15.7/video-sousuo-117877-18-0-0-0-1-all-complex-0-0-0-0-0-0.htmlurl
: http://192.168.15.7/video-sousuo-117877-18-0-0-0-1-all-complex-0-0-0-0-0-0.html
uri
: /video-sousuo-117877-18-0-0-0-1-all-complex-0-0-0-0-0-0.html
總結
以上是生活随笔為你收集整理的四层负载均衡 动静分离和资源分离 Rewrite rewrite伪静态实例的全部內容,希望文章能夠幫你解決所遇到的問題。
如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。