宝塔界面相关

1
2
3
4
5
6
7
8
Centos安装宝塔面板脚本:
yum install -y wget && wget -O install.sh http://v7.hostcli.com/install/install_6.0.sh && sh install.sh

ubuntu安装宝塔面板脚本:
wget -O install.sh http://v7.hostcli.com/install/install-ubuntu_6.0.sh && sudo bash install.sh

放行8888端口命令:
iptables -I INPUT -p tcp --dport 8888 -j ACCEPT

宝塔中反代代码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
location /

{

proxy_pass http://127.0.0.1:8008;

proxy_set_header Host $host;

}

location /ws

{

proxy_pass http://127.0.0.1:8008;

proxy_http_version 1.1;

proxy_set_header Upgrade $http_upgrade;

proxy_set_header Connection "Upgrade";

proxy_set_header Host $host;

}

location /terminal

{

proxy_pass http://127.0.0.1:8008;

proxy_http_version 1.1;

proxy_set_header Upgrade $http_upgrade;

proxy_set_header Connection "Upgrade";

proxy_set_header Host $host;

}

评论