在服务器端我运行
./bin/ngrokd -domain="$NGROK_DOMAIN" -httpAddr=":8088" -httpsAddr=":8082" -tunnelAddr=":8083"
显示
[18:39:55 CST 2017/07/18] [INFO] (ngrok/log.(*PrefixLogger).Info:83) [registry] [tun] No affinity cache specified
[18:39:55 CST 2017/07/18] [INFO] (ngrok/log.(*PrefixLogger).Info:83) [metrics] Reporting every 30 seconds
[18:39:55 CST 2017/07/18] [INFO] (ngrok/log.Info:112) Listening for public http connections on [::]:8088
[18:39:55 CST 2017/07/18] [INFO] (ngrok/log.Info:112) Listening for public https connections on[::]:8082
[18:39:55 CST 2017/07/18] [INFO] (ngrok/log.Info:112) Listening for control and proxy connections on [::]:8083
在客户端我运行
./ngrok -subdomain=ym -config="ngrok-config" start tunnel1
显示
ngrok (Ctrl+C to quit)
Tunnel Status online
Version 1.7/1.7
Forwarding http://ym.t.kmic168.com:8088 -> 127.0.0.1:81
Web Interface 127.0.0.1:4040
# Conn 0
Avg Conn Time 0.00ms
我已经设置了nginx配置。
但请在浏览器上试用http://ym.t.kmic168.com:8088/
respond 503 code
请帮助谢谢
答案 0 :(得分:0)
你必须在你的ip
中设置一个类似“* .t”的A记录