前提:
A服务器:一个备案的未封80端口的服务器
B服务器:一个封80端口的服务器其他端口未封
配置B服务器其他端口如1111端口并测是B的http://ip:1111是否可以用手机流量下访问
然后A的nginx配置如下
server {
listen 80;
location / {
proxy_pass http://B服务器ip地址:1111;
}
access_log off;
}
然后重启nginx
命令: service nginx restart
访问A的ip或者域名看是否能跳到B的页面上