宝塔面板利用反向代理加速CDN

菜鸟 2704 194

最近发现自己的一个网站在某个地方不能打开,然后也试了一下其他人用这个服务器的网站也是无法打开的,比较奇怪。刚好有一个香港vps闲置着,那么刚好可以用来做反代,顺便还可以加速,毕竟香港服务器还是要比美国的快啊。由于都是装的面板,所以做了一番研究,发现比较简单,像我这样的小白都很容易弄懂了。 可以先把网站域名的a记录改成要做反代的香港服务器ip那里。 然后在需要做反代的香港机器修改/etc/hosts/,目的是告诉cdn这个节点需要在原站那里取数据 网站域名 原来的ip地址。 然后在香港机器上像平常那样添加网站域名,数据库ftp这些不需要设置。

宝塔面板利用反向代理加速CDN-第1张图片-笔记运维

在反向代理那里填写域名,如果原来域名启用了https协议的话,那么做反代加速也是要加上https的,如果像我一样使用let's encrypt的话,不能在面板那里直接申请,不然会出现错误,我们可以在原来面板那里复制ssl证书过来就可以了,如上图。 最后就是重启一下nginx了,这样就可以了,剩下的就是等ns记录生效,然后ping一下,就会发现域名的ip地址变成香港的了。   

宝塔面板利用反向代理加速CDN-第2张图片-笔记运维

标签: 宝塔反向代理

发表评论 (已有194条评论)

评论列表

2023-01-23 01:19:01

1

2023-01-23 01:20:14

1

2023-01-23 01:26:43

1

2023-01-23 01:53:59

1

2023-01-23 01:55:12

1

2023-01-23 01:55:15

1

2023-01-23 01:55:51

1

2023-01-23 01:55:55

1

2023-01-23 01:55:55

1

2023-01-23 01:55:56

1

2023-01-23 01:55:56

1

2023-01-23 01:55:57

1

2023-01-23 01:55:58

1

2023-01-23 01:56:01

1

2023-01-23 01:56:05

1

2023-01-23 01:56:08

1

2023-01-23 01:56:10

1

2023-01-23 01:56:13

1

2023-01-23 01:56:17

1

2023-01-23 01:56:21

1

2023-01-23 01:56:23

1

2023-01-23 01:56:26

1

2023-01-23 01:56:29

1

2023-01-23 01:56:29

1

2023-01-23 01:56:30

1

2023-01-23 01:56:30

1

2023-01-23 01:56:33

1

2023-01-23 01:56:36

1

2023-01-23 01:57:23

1

2023-01-23 01:57:27

1

2023-01-23 01:57:31

1

2023-01-23 01:57:34

1

2023-01-23 01:57:34

1

2023-01-23 01:57:35

1

2023-01-23 01:57:35

1

2023-01-23 01:57:35

1

2023-01-23 01:57:36

1

2023-01-23 01:57:38

1

2023-01-23 01:57:41

1

2023-01-23 01:57:44

1

2023-01-23 01:57:46

1

2023-01-23 01:57:49

1

2023-01-23 01:57:52

1

2023-01-23 01:57:54

1

2023-01-23 01:57:57

1

2023-01-23 01:57:59

1

2023-01-23 01:58:02

1

2023-01-23 01:58:02

1

2023-01-23 01:58:03

1

2023-01-23 01:58:05

1

2023-01-23 01:58:08

1

2023-01-23 01:58:08

1

2023-01-23 01:58:08

1

2023-01-23 01:58:09

1

2023-01-23 01:58:09

1

2023-01-23 01:58:12

1

2023-01-23 01:58:15

1

2023-01-23 01:58:19

1

2023-01-23 01:58:24

1

2023-01-23 01:58:26

1

2023-01-23 01:58:29

1

2023-01-23 01:58:32

1

2023-01-23 01:58:35

1

2023-01-23 01:58:37

1

2023-01-23 01:58:39

1

2023-01-23 01:58:42

1

2023-01-23 01:58:44

1

2023-01-23 01:58:47

1

2023-01-23 01:58:50

1

2023-01-23 01:58:53

1

2023-01-23 01:58:53

1

2023-01-23 01:58:54

1

2023-01-23 01:58:55

1

2023-01-23 01:58:57

1

2023-01-23 01:58:59

1

2023-01-23 01:58:59

-1 OR 2+233-233-1=0+0+0+1 --

2023-01-23 01:59:00

-1 OR 3+233-233-1=0+0+0+1 --

2023-01-23 01:59:00

-1 OR 2+256-256-1=0+0+0+1

2023-01-23 01:59:01

-1 OR 3+256-256-1=0+0+0+1

2023-01-23 01:59:01

-1' OR 2+773-773-1=0+0+0+1 --

2023-01-23 01:59:02

-1' OR 3+773-773-1=0+0+0+1 --

2023-01-23 01:59:02

-1' OR 2+765-765-1=0+0+0+1 or 'o5GZcJ7H'='

2023-01-23 01:59:03

-1' OR 3+765-765-1=0+0+0+1 or 'o5GZcJ7H'='

2023-01-23 01:59:03

-1" OR 2+304-304-1=0+0+0+1 --

2023-01-23 01:59:04

-1" OR 3+304-304-1=0+0+0+1 --

2023-01-23 01:59:06

if(now()=sysdate(),sleep(15),0)

2023-01-23 01:59:07

0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z

2023-01-23 01:59:09

0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z

2023-01-23 01:59:11

(select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/

2023-01-23 01:59:13

-1; waitfor delay '0:0:15' --

2023-01-23 01:59:14

-1); waitfor delay '0:0:15' --

2023-01-23 01:59:16

1 waitfor delay '0:0:15' --

2023-01-23 01:59:18

IEHIkfC5'; waitfor delay '0:0:15' --

2023-01-23 01:59:19

-5 OR 250=(SELECT 250 FROM PG_SLEEP(15))--

2023-01-23 01:59:20

-5) OR 138=(SELECT 138 FROM PG_SLEEP(15))--

2023-01-23 01:59:21

-1)) OR 10=(SELECT 10 FROM PG_SLEEP(15))--

2023-01-23 01:59:22

sMVkRBtA' OR 656=(SELECT 656 FROM PG_SLEEP(15))--

2023-01-23 01:59:23

6iDuyzwe') OR 61=(SELECT 61 FROM PG_SLEEP(15))--

2023-01-23 01:59:24

f2247qYk')) OR 613=(SELECT 613 FROM PG_SLEEP(15))--

2023-01-23 01:59:27

1'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'

2023-01-23 03:50:49

@gBqsPxAZ 1