2017-06-14 94 views

回答

0

docs说:

您还必须选择1024以上的端口号,如王国对象 Server不以root身份运行。建议使用默认端口 (9443)。

如果你想成为能够连接到域对象服务器低于1024的一个 端口上,如默认HTTPS端口443,您可以 流量转发到端口境界对象服务器监听:

须藤的iptables -A PREROUTING -t NAT -p tcp的--dport 443 -j REDIRECT --to端口9443

因此,要使用80端口连接成功,则可以保留默认的HTTP。在9080处listen_port并运行此命令:

sudo iptables -A PREROUTING -t nat -p tcp --dport 80 -j REDIRECT --to-port 9080

1

是的。可以通过适当地设置configuration.yml来更改端口。

请参阅上configuration.ymlproxynetworksync部分。

以下是configuration.yml的摘录。

... 
proxy: 

    http: 
    listen_address: '::' 

    ## The port that the HTTP proxy module should bind to. 
    # listen_port: 9080 

    https: 
    ## The port that the HTTPS proxy module should bind to. 
    # listen_port: 9443 

network: 
    http: 
    ## The port on which to listen for incoming requests to the Dashboard 
    ## and authentication APIs. This defaults to 27080. 
    # listen_port: 27080 

sync: 
    ## Synchronization service settings, including clustering and load balancing. 
    servers: 
... 
相关问题