Complete the code to set the original client's IP address in the proxy headers.
proxy_set_header X-Real-IP [1];The X-Real-IP header should be set to $remote_addr to pass the client's IP address to the backend server.
Complete the code to forward the original Host header to the backend server.
proxy_set_header Host [1];The Host header should be set to $host to preserve the original host requested by the client.
Fix the error in the code to correctly set the X-Forwarded-For header to include the client IP and existing forwarded IPs.
proxy_set_header X-Forwarded-For [1];The variable $proxy_add_x_forwarded_for appends the client IP to the existing X-Forwarded-For header, preserving the chain of IPs.
Fill both blanks to set headers that forward the original protocol and client IP to the backend.
proxy_set_header X-Forwarded-Proto [1]; proxy_set_header X-Real-IP [2];
X-Forwarded-Proto should be set to $scheme to indicate HTTP or HTTPS. X-Real-IP should be set to $remote_addr to pass the client IP.
Fill all three blanks to set headers that forward the original host, protocol, and client IP to the backend.
proxy_set_header Host [1]; proxy_set_header X-Forwarded-Proto [2]; proxy_set_header X-Real-IP [3];
Set Host to $host to preserve the original host. Set X-Forwarded-Proto to $scheme to indicate the protocol. Set X-Real-IP to $remote_addr to forward the client IP.