Domain routing and x-forwarded-host header #67007
Unanswered
SalmenBejaoui
asked this question in
App Router
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
In our infrastructure, Next.js is running behind an Apache server, and to get the right host we leverage the x-forwarded-host header.
Implementing domain routing, I see that Next.js checks only the host to match the locale domain. It's an issue for us because we can not set correctly the i18n.domains array to add only browser hostname.
This is the current infrastructure:
Browser -> Akamai -> Ingress -> Apache proxy -> Next.js
host: ABC -> host: ABC -> host: ABC -> host: ABC -> host: internal-ABC
Host value can't be overridden at apache Level.
I want to add ABC as a locale domain and not internal-ABC.
Beta Was this translation helpful? Give feedback.
All reactions