Ngrok 如何转发到特定 URL?

Uğu*_*ğlu 3 apache ngrok

我有一个在本地运行的网络应用程序。我尝试使用 ngrok 进行 webhooks,但 ngrok 向世界开放整个应用程序。(由于某些原因,我不想使用ngrok -auth 。)

我想 ngrok 转发只是为了 webhooks。例如:

Forwarding      http://xxxxx.ngrok.io -> localhost:80/webhook
Run Code Online (Sandbox Code Playgroud)

ngrok 可以吗?

或者我可以在 apache 中重新转发 ngrok 请求吗?我是说;

Ngrok 转发到 localhost:80,apache 检测来自 ngrok 的请求并重新转发到 localhost:80/webhook。

Sau*_*rya 5

如果您希望将请求转发到 localhost:80/webhook ,那么无论您在何处指定服务的回调,请将其设置为http://xxxxx.ngrok.io/webhook