[英]Ngrok: “tunnel not found” with custom domain
I paid for a Ngrok plan in order to tunnel to my localhost:3000.我支付了一个 Ngrok 计划,以便通过隧道连接到我的 localhost:3000。 I have bought a custom domain myexampledomain.com (not this one) from Hover and reserved the same address as my custom domain on my Ngrok account.
我从 Hover 购买了一个自定义域 myexampledomain.com(不是这个),并在我的 Ngrok 帐户上保留了与我的自定义域相同的地址。
I have added the CNAME provided by Ngrok to my domain records in Hover.我已将 Ngrok 提供的 CNAME 添加到我在 Hover 中的域记录中。 At Hover they say everything looks fine regarding propagation.
在 Hover,他们说关于传播的一切看起来都很好。
Still I get "Tunnel www.myexampledomain.com not found" when I try to tunnel with http and "ERR_CONNECTION_REFUSED" error with https.尽管如此,我得到“隧道www.myexampledomain.com未找到”当我试图用http和https的“ERR_CONNECTION_REFUSED”错误隧道。 I have tried to email Ngrok support yesterday and heard nothing.
我昨天尝试给 Ngrok 支持发送电子邮件,但什么也没听到。 Anybody who has resolved this same problem?
有人解决过同样的问题吗?
Alternatively, I would appreciate tips for having a custom url for my local Node.js website (on Mac).或者,我希望为我的本地 Node.js 网站(在 Mac 上)提供自定义 url 的提示。 Another tunnel provider that works with custom domains?
另一个使用自定义域的隧道提供商? Not even a tunnel is needed, just a custom address that is visible for testers on my computer instead of localhost:3000.
甚至不需要隧道,只需要一个对我的计算机上的测试人员可见的自定义地址,而不是 localhost:3000。 I would not want to touch /etc/hosts file as I'm close to my project deadline and afraid of causing problems to the actual localhost.
我不想碰 /etc/hosts 文件,因为我接近我的项目截止日期并且害怕给实际的本地主机造成问题。 Many thanks!
非常感谢!
I had the same issue except https.除了https,我遇到了同样的问题。 (I have never tried it. I have tried only http.)
(我从来没有试过。我只试过http。)
What plan did you paid?你支付了什么计划? I thought basic plan is enough for this feature, but it requires pro plan.
我认为基本计划足以满足此功能,但它需要专业计划。
If you have pro plan, please check the belows:如果您有专业计划,请检查以下内容:
-hostname
option.-hostname
选项运行 ngrok 命令。 For example, if your subdomain(hostname + custom domain name) is myhost.myexampledomain.com
, please run the command:例如,如果您的子域(主机名 + 自定义域名)是
myhost.myexampledomain.com
,请运行以下命令:
ngrok http -region=us -hostname=myhost.myexampledomain.com 80
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.