Skip to content

How to reverse proxy frankenphp #718

Answered by withinboredom
Asociateone asked this question in Q&A
Discussion options

You must be logged in to vote

Heh. It isn't. I could probably write a book about the problem you are stuck on, and we have all been stuck on some version of this problem. I don't want to spoil it for you because it's a good learning experience for how the web works... but I will give you a direction.

I recommend reading up on https://laravel.com/docs/11.x/urls and note:

The generated URL will automatically use the scheme (HTTP or HTTPS) and host from the current request being handled

So you need to figure out one of two options:

  1. How to keep the original https request to your application visible to your application. (Not sure how to do this with caddy tbh)
  2. Manually set the application url in your env and do not rely…

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@Asociateone
Comment options

@withinboredom
Comment options

Answer selected by Asociateone
@Asociateone
Comment options

@larsverp
Comment options

@Asociateone
Comment options

@dunglas
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants