环境:内网3台Centos机器 A、B、C
网络:只有A机器拥有公网 80 和 443 出口
理想需求:在拥有80 和 443公网出口的A服务器上部署Nginx反向代理B、C两台机器上的宝塔面板地址
现状:通过域名访问两台机器的面板可以正常访问,但是在面板中打开终端,终端连接不上。
Nginx配置如下(配置内容较多,简单张贴一下内容):
server
{
listen 80;
server_name bt81.soft.com;
index index.html index.htm index.php;
root /www/server/phpmyadmin;
client_max_body_size 10M;
include enable-php.conf;
location / {
proxy_pass http://bt81;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host server_port;
}
access_log /www/wwwlogs/access.log;
}
|
|