Complete the code to forward the original client's IP address using the correct header.
proxy_set_header [1] $remote_addr;The X-Forwarded-For header is used to forward the original client's IP address through the proxy.
Complete the code to forward the original Host header to the backend server.
proxy_set_header [1] $host;The Host header forwards the original domain name requested by the client.
Fix the error in the code to correctly forward the original protocol (http or https).
proxy_set_header X-Forwarded-Proto [1];The $scheme variable holds the original protocol (http or https) used by the client.
Fill both blanks to forward the original client IP and the original protocol correctly.
proxy_set_header [1] $remote_addr; proxy_set_header [2] $scheme;
X-Forwarded-For forwards the client IP, and X-Forwarded-Proto forwards the protocol.
Fill all three blanks to forward the original client IP, host, and protocol headers correctly.
proxy_set_header [1] $remote_addr; proxy_set_header [2] $host; proxy_set_header [3] $scheme;
These three headers forward the client IP, original host, and protocol respectively.