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