dnsmasq - proxy_set_header

Dan W

New Member
Joined
Jun 14, 2019
Messages
8
Reaction score
0
Credits
0
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


Top