2017-06-14 45 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: 
... 
相關問題