Laravel 9 using Homestead getting redirect not working
rbruhn opened this issue · 1 comments
rbruhn commented
Is there something more I need to do than the basic instructions? I'm running several sites locally using Homestead and Nginx.
I've tried the commands:
vagrant@homestead:~/sites/biospexDev$ art ngrok --host=nginx dev.biospex.test
-----------------
| NGROK |
-----------------
Host header: dev.biospex.test
Host: nginx
Port: 80
Web Interface: http://192.168.10.10:4040
Forwarding: https://efcb-69-246-163-107.ngrok.io -> http://nginx:80
Forwarding: http://efcb-69-246-163-107.ngrok.io -> http://nginx:80
Resulting in
Failed to complete tunnel connection
The connection to http://efcb-69-246-163-107.ngrok.io/ was successfully tunneled to your ngrok client, but the client failed to establish a connection to the local address [nginx:80](http://nginx/).
Make sure that a web service is running on [nginx:80](http://nginx/) and that it is a valid address.
The error encountered was: dial tcp: lookup nginx on 127.0.0.53:53: server misbehaving
And
vagrant@homestead:~/sites/biospexDev$ art ngrok --host=dev.biospex.test
-----------------
| NGROK |
-----------------
Host header: dev.biospex.test
Host: dev.biospex.test
Port: 80
Web Interface: http://192.168.10.10:4040
Forwarding: https://0a62-69-246-163-107.ngrok.io -> http://dev.biospex.test:80
Forwarding: http://0a62-69-246-163-107.ngrok.io -> http://dev.biospex.test:80
Results in "The page isn’t redirecting properly"
In my Nginx site configs, I do redirect http to https. Could that be causing the issue? The redirects work normally when accessing from a browser on my computer.
Appreciate any feedback.
rbruhn commented
Sorry, the above works. Https doesn't work with a free account.