7

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?

Rhangaun
  • 1,430
  • 2
  • 15
  • 34
Undistraction
  • 42,754
  • 56
  • 195
  • 331
  • 1
    Is the following line in your ~/.powconfig? `export POW_EXT_DOMAINS=ngrok.com` Some people have had to reinstall pow after adding that line. – manderson Apr 29 '14 at 13:48

2 Answers2

18

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

Sam
  • 196
  • 1
  • 3
0

I was using the Powder gem and doing "powder restart", which only works for the local site. You might need to restart pow as described in the manual: http://pow.cx/manual.html#section_3.3

onedanshow
  • 221
  • 3
  • 6