Why does localtunnel not work when there is a redirect defined for a route in Laravel?

1.7k Views Asked by At

These devices are all on the same LAN:

  • Ubuntu server
  • Win 10 PC
  • iPhone
  • Android

On the Ubuntu server, the /etc/hosts file has:

127.0.0.1       rcw.lt

Also on the Ubuntu server, there is a Laravel app hosted by nginx: server_name rcw.lt;.

The / homepage route of my rcw.lt app uses a redirect (see https://laravel.com/docs/8.x/redirects and https://laravel.com/docs/8.x/helpers#method-redirect).

I run lt --port 80 --local-host rcw.lt &.

What does NOT work:

What works:

Any ideas?

Is this a problem with how Laravel redirects work? Or a problem with localtunnel? Is there a workaround?

I really appreciate your help. :-)

0

There are 0 best solutions below