Score:1

change domain proxy_pass to ip

ae flag
Joe

I used reverse proxy but seeing the nginx log it changes the address to ip and it doesn't work because the destination server is vhost and it only works with domains.

location  = /video {
    resolver 8.8.8.8;
    if ( $arg_net != "" ) {
        proxy_pass https://$arg_net.serverA.com;
    }
    proxy_redirect off;
  }

I see in the nginx log

... upstream: "https://[2a02:2518:4:3875::d]:443/video?net=...

How can I use it only with the domain??

Score:1
vn flag

That's why proxy_set_header exists, and you need

proxy_pass https://$arg_net.serverA.com;
proxy_set_header Host "$arg_net.serverA.com";

https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/#passing-request-headers

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.