I need the client to send and receive data from the proxy server, and the real server saw the ip of the proxy server, not the ip of the client. In essence, a mirror of the site. How many times have I tried the site always sees the original ip. I checked it with wget sending request to reverse proxy.
wget 123.123.123.123/ip
cat ip
*find ip in output of cat and there is no 123.123.123.123. There is my ip*
nginx config:
server {
listen *;
server_name browserleaks.com;
location / {
proxy_pass https://browserleaks.com/;
}
}
As I understand it, I need to set headers like x-real-ip, but no matter what I do, it doesn't work
So, it... Works. Just needed clear cache in browser. Not even a headline was needed.
And if you wonna enable ssl change config to:
stream{
server{
listen 443;
proxy_pass browserleaks.com:443;
}
}
stream replaces http