Score:0

Nginx too many redirects error when using upstreams

cn flag

I have the following nginx config

upstream test1 {
     server 10.0.1.8:33284;
     server 10.0.3.9:32783;
}

server {
    listen 80;
    server_name test1.example.com;
    rewrite ^ https://test.example.com redirect;
}

server {
      listen 443;
      server_name test.example.com;
      location / {
          proxy_pass http://test1;
          proxy_set_header Host $host;
       }
 }
Score:0
cn flag

I had to set the following

proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
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.