【问题标题】:Forwarding nginx to an Openfire XMPP local server将 nginx 转发到 Openfire XMPP 本地服务器
【发布时间】:2018-09-14 14:47:53
【问题描述】:

我有一个已经存在的 nginx 服务器,它是我内部网络的反向代理,我如何配置它来代理从 NGINX 到 Openfire XMPP 本地服务器的转发流量

【问题讨论】:

    标签: nginx xmpp openfire


    【解决方案1】:

    在 Nginx 配置中包含流模块

    load_module '/usr/lib64/nginx/modules/ngx_stream_module.so';
    stream {
    
        server {
            listen 5222;
            proxy_protocol on;
            proxy_pass 192.168.X.X:5222;
        }
        server {
            listen 5223;
            proxy_protocol on;
            proxy_pass 192.168.X.X:5223;
        }
    
    
    }
    

    【讨论】:

      猜你喜欢
      • 2013-10-07
      • 1970-01-01
      • 1970-01-01
      • 2018-01-30
      • 1970-01-01
      • 1970-01-01
      • 2015-03-13
      • 2019-01-29
      • 2016-02-09
      相关资源
      最近更新 更多