Multiple domains for a single frankenphp caddy app results in endless 308 redirect #1909
-
|
We have a production environment for which we need to migrate the domain name. We want to do this with 0 downtime and thought about simply adding a new domain to the setup and remove the old one later. We are running a Symfony app using frankenPHP+caddy from a Wolfi docker image (ghcr.io/shyim/wolfi-php/frankenphp:8.3). The problem that we face is that when we add the second domain we get 308 redirects that end in a loop for both domain names. I've scoured the documentation and GitLab issues but can't find why this would not work, what I've tried: Or separated: Other attempts: bypassing the php_fastcgi directive (using transport Furthermore, I've tried every setting for the But every permutation seems to end in the 308 (or bad gateway). I understood that internally a canonical host is determined and that that is causing the redirects - though that would not explain why we get 308's for both domains. I feel I must be missing something simple, and I hope someone can point me in the right direction for pointing multiple domains to a single application like this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
308 indicates a redirect from http to https. I think if you only want http, you have explicitly also set the :80 port (haven't tried myself though) domain1.com:80, domain2.com:80 {
...
} |
Beta Was this translation helpful? Give feedback.
308 indicates a redirect from http to https. I think if you only want http, you have explicitly also set the :80 port (haven't tried myself though)