Purpose: I want to share viewing a website using ngrok, which creates a tunnel, from which you can see my local host with a URL of something like mywebsite.ngrok.io
Problem: I use WAMP, and my localhost folder looks something like this:
localhostdirectory |-- website1 |-- website2 |-- etc
To access the website, I type in the text localhost/website1/ in the browser, I would like to tunnel only this URL, possible solutions:
Configuring a virtual host I would encounter the problem of manually configuring a virtual host , then I get something like website1.dev, and then I will pass it to ngrok as the host header in the HTTP request, like this :
ngrok http -host-header=website1.dev 80
I did not understand what the host header is, and why I can not pass the relative URL, for example localhost/website1/ , and what is the rewrite option?
- Change the folder directory of my local host folder to the website folder, I would prefer not to.
Is there a better way to accomplish my task in a simpler way, perhaps by going through the WAMP aliases?
Pontiacks
source share