zoukankan      html  css  js  c++  java
  • frp 多个web服务内网映射*IP

    服务端配置:

    [common]

    bind_port=6001

    token = 2012

    [web1]

    listen_port= 6002   ------- web1远程端口

    [web2]

    listen_port = 6003  -------web2远程端口

    =======================================================

    客户端配置:

    [common]

    server_addr = 111.111.111.1111

    server_port=6001

    token = 2012

    [ssh_1]

    type=tcp

    local_ip = 192.168.1.5

    local_port=22

    remote_port=6010

    [oracle_1]

    type=tcp

    local_ip = 192.168.1.5

    local_port=1521

    remote_port=6011

    [web1]

    type = tcp

    local_port=6002

    local_ip=192.168.1.5

    remote_port=6002

    [web2]

    type = tcp

    local_port=6003

    local_ip=192.168.1.5

    remote_port=6003

    ==========================

    nginx 配置

    server {

      listen 6002;

      server_name 192.168.1.5;

      location / {

        proxy_pass http://192.168.1.5:8082

      }  

    }

    server {

      listen 6003;

      server_name 192.168.1.5;

      location / {

        proxy_pass http://192.168.1.5:8083

      }  

    }

    =========远程地址访问web:

    111.111.111.1111:6002

    111.111.111.1111:6003

  • 相关阅读:
    c#中的命名空间、类
    C#编写“hello,world”
    django1.9中manage.py的操作命令
    JS原生Ajax操作(XMLHttpRequest)
    Jquery百宝箱
    jQuery与Ajax入门
    JSON
    JSTL与EL表达式
    知识点整理
    Servlet与JSP进阶
  • 原文地址:https://www.cnblogs.com/wuchangsoft/p/14326056.html
Copyright © 2011-2022 走看看