I use Pow to manage web servers on my development machine. It works pretty well.
To start my server, I just hit a URL like https://surveyweb.dev
, which starts the server (if it isn’t running) and spins it down automatically in 5 minutes.
It doesn’t work over HTTPS by default; here’s how you get that done.
1
|
|
This gem lets you route traffic from one port to another port.
We need to route traffic from port 443, to port 80 (where the Pow server runs).
1
|
|
While the tunnel is open, I can access https://surveyweb.dev
just fine.
Pow also has a feature where I can access my server from another machine on the LAN using a URL like https://surveyweb.192.168.1.10.xip.io/
where 192.168.1.10
is the IP address of my machine. Even with the tunnel open, HTTPS doesn’t work for this URL.
We need to start another tunnel:
1
|
|
And now, both URLs work over HTTPS.