server {
server_name domen1.ru;
listen 111.111.111;
location / {
proxy_pass http://222.222.222.222:80;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
}
}
111.111.111.111 IP который слушаем 222.222.222.222 IP с которого проксируем
|
|
|