This often happens when the reverse proxy doesn't forward the original request information correctly to the backend application.
Your application may think visitors are accessing it through a different hostname, protocol, or IP address.
Check these settings:
- Forward the original hostname: Make sure the proxy passes the correct
Host header to the backend.
- Check HTTPS forwarding: If SSL terminates at the proxy, the application should receive the correct forwarded protocol information.
- Verify client IP forwarding: Configure trusted proxy headers such as
X-Forwarded-For appropriately.
- Review redirect settings: Incorrect backend URL or proxy configuration can cause redirect loops or unexpected destinations.
- Check application trust settings: Some frameworks require explicitly configured trusted proxies before accepting forwarded headers.
Be careful when trusting forwarded headers. Only accept them from trusted proxy servers, otherwise visitors may be able to spoof information about their requests.