Welcome! Log In Create A New Profile

Advanced

proxy_pass. Взаимодействие ресурсов за nginx

May 15, 2020 09:23AM
Помогите советом. Ну или хотя бы направлением.

Есть сервер nginx-proxy. За ним два сервера (ххххх.4 и ххххх.5) . Как сделать чтобы шли запросы от с сервера хххх.4 до ххххх.5 по доменному имени (без указания порта)?

location / {
proxy_pass http://хххххх.4;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $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;
proxy_send_timeout 900;
proxy_read_timeout 900;
send_timeout 900;
client_max_body_size 30M;
}

location /pdfcombiner/ {
proxy_pass http://хххххх.5:8092/;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_cache_bypass $http_upgrade;
}
Subject Author Posted

proxy_pass. Взаимодействие ресурсов за nginx

vetallkvn May 15, 2020 09:23AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 80
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready