ngrok https / tls隧道无法正常工作?

时间:2016-07-26 14:39:42

标签: ssl https ngrok

我有一个像internal.mycompany.com这样的私人网站,只能在公司的私人网络中访问。我正在尝试使用ngrok公开访问此网站。 (我购买了一份商业计划书)。无论我尝试什么,我都无法使用https打开网站。 http工作正常,但它并不理想,因为网站通常会将http请求重定向到https。然后我尝试使用谷歌类似的东西。

以下是我的.ngrok2 / ngrok.yml文件的样子:

http-google-com:
    addr: www.google.com:80
    host_header: "rewrite"
    subdomain: "http-google-com"
    proto: http
https-google-com:
    addr: www.google.com:443
    host_header: "rewrite"
    subdomain: "https-google-com"
    proto: http
tls-google-com:
    addr: www.google.com:443
    host_header: "rewrite"
    subdomain: "tls-google-com"
    proto: tls

然后我运行ngrok start --all,这些是我用浏览器浏览网址时每个案例的结果。我的内部网站的所有结果都是相同的。

http-google-com:当我浏览http://http-google-com.ngrok.io/(或https://)时,浏览器会打开https://www.google.com。似乎有些重定向。

https-google-com:当我浏览http://https-google-com.ngrok.io/(或https://)时,我得到了#344; 502 Bad Gateway"错误

tls-google-com:当我浏览https://tls-google-com.ngrok.io/时,浏览器会说ssl证书适用于" google.com"域名不适用于" ngrok.io"。添加安全例外后,浏览器会显示google的经典404页面,其中显示了#34; 404。那是一个错误。在此服务器上找不到请求的URL /。这就是我们所知道的。"

更新

我尝试了proto:tcp,但它也没有用。

tcp-google-com:
    addr: www.google.com:443
    host_header: "rewrite"
    subdomain: "tcp-google-com"
    proto: tcp

0 个答案:

没有答案
相关问题