How to avoid redirect to localhost or 127.0.0.1 #759
Unanswered
discoverlance-com
asked this question in
Q&A
Replies: 1 comment
-
I recommend taking a look at #718 which might help. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am quite new to using octane and particularly frankenphp and I am running into issues with the redirection of the host.
For now, I am using laravel sail to run my application so after I installed laravel octane and used the frankenphp server, I updated my docker-compose environment to now be as follows per the laravel docs:
I also have the following in my environment variable:
This works alright and I am able to load my application, but for some reason, anytime I try to click a link on my application, I get redirected to localhost, as an example when I click on the about page link, this is where I get redirected to:
https://127.0.0.1:8000/about
which is invalid. I am not sure how to set the url so it uses my application's url.I experience a similar thing when I try to deploy the application with docker. I have the following docker file but on that page. But after building the docker image and trying to run the image with the command:
docker run -p 8000:80 --env-file .env
, I have similar issues, thus, all links have the 127.0.0.1 as the url(https://127.0.0.1:8000/about) and another weird issue in my generated html is that I get this picture below as the urls generated for my vite assets:I am using a workstation like gitpod and it basically generates an https url so I don't need to use the automatic ssl generation that comes with frankenphp/caddy.
Beta Was this translation helpful? Give feedback.
All reactions