Introduction
When you use Nginx as a proxy server, it forwards requests to another server. Proxy headers forwarding means sending important information like the original client's IP address and protocol to the backend server. This helps the backend know who made the request and how it was made.
When you want your backend server to know the real IP address of the user visiting your website.
When your backend needs to know if the original request was made over HTTP or HTTPS.
When you want to keep track of the original host name requested by the client.
When you use Nginx as a reverse proxy in front of an application server.
When you want to pass custom headers from Nginx to your backend for logging or security.