Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Ngrok is tunneling to the localhost instead of the vhost. #579

Closed
kiranbhattarai opened this issue May 21, 2019 · 1 comment
Closed

Ngrok is tunneling to the localhost instead of the vhost. #579

kiranbhattarai opened this issue May 21, 2019 · 1 comment

Comments

@kiranbhattarai
Copy link

Version 2.3.29
Bug detected: Is tunneling only through the localhost
Explanation: I have a virtual host set up and while trying to tunnel through that virtual host it does not do that instead it will tunnel through the localhost by default.
How to re create the problem: I have attached a video on how to recreate it
video url: https://youtu.be/dN0Ej8wn56g

@ljmoleiro
Copy link

Hey I solve it with this

ngrok http -host-header=rewrite [vhost-name:port]

See the full answer here

https://stackoverflow.com/questions/31632534/targeting-dev-sites-with-vhost-setup-using-ngrok

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants