x-real-ip header nginx code example Example: nginx set header x-real-ip proxy_set_header X-Real-IP $remote_addr;