Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using NGrok with POW

I've almost got NGrok working with POW, but it is resolving to the POW without drilling down to the application running on POW.

I can access my local application running on POW at:

myapp.dev

However when I initialize Ngrok:

/Applications/ngrok -subdomain=myapp myapp.dev:80

As outlined here, I receive the following output from NGrok:

Tunnel Status                 online
Version                       1.6/1.5
Forwarding                    http://myapp.ngrok.com -> 127.0.0.1:80
Forwarding                    https://myapp.ngrok.com -> 127.0.0.1:80
Web Interface                 127.0.0.1:4040
# Conn                        0
Avg Conn Time                 0.00ms

Loading http://myapp.ngrok.comresolves to POW, but I get the generic message:

Pow is installed
You’re running version 0.4.1

How can I setup NGrok to resolve to my .dev domain?

like image 529
Undistraction Avatar asked Apr 01 '14 16:04

Undistraction


1 Answers

Might be a bit late to the party, but here it goes.

It seems like you need to modify your Host header.

For example:

ngrok http -host-header=myapp.dev mayapp.dev:80

This answer only works with ngrok v2.

More info can be found at https://ngrok.com/docs#http

like image 135
Sam Avatar answered Oct 07 '22 18:10

Sam