• Rob's side project: I recently started Gun-Forums.com and we currently have a $100 raffle - if you're into guns, join up and enter the raffle to win $100.00. Gun Forums

dnsmasq - proxy_set_header

Dan W

New Member
I have just set up my first nginx reverse proxy server and am trying to understand what exactly the "proxy_set_header" function is for. For instance, I have seen "proxy_set_header X-Real-IP $remote_addr;" and "proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;" and do not fully understand what exactly the function "proxy_set_header" does. Am I correct in saying this function enables the reverse proxy to pass on data (for example the IP address as shown in the first example) to the next hop server? Any help would be greatly appreciated!

Members online

No members online now.