x-middleware-rewrite header changes the protocol to https instead of http when using nginx http proxy #1761
Unanswered
mustbefail
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
we are using nginx with http proxy pass
we decided to switch to next-intl but there is a problem
when we deploy nextjs + next-intl app on our server header x-middleware-rewrite changes protocol from http to https
nginx proxy
https://travel.padi.inprogress.rocks/
tohttp://127.0.0.1:4300/
request url: https://travel.padi.inprogress.rocks/dive-trip/ukraine/multi-day-trip-65406/?activity_date=2025-03-01
x-middleware-rewrite: https://localhost:4300/dive-trip/ukraine/multi-day-trip-65406/?activity_date=2025-03-01
and we are getting certificate mismatch errors when running the nextjs server
without next-intl it works as expected but without intl router which we need
maybe some advice?
without next-intl it works as expected but without intl router which we need
Beta Was this translation helpful? Give feedback.
All reactions