Score:0

nginx reverse proxy proxy_set_header issue ubuntu 21.04

us flag

A configuration I have been using on Ubuntu 20.04.02 LTS with nginx/1.18.0 (Ubuntu) which works fine, however when I tried to deploy the same config to an Ubuntu 21.04 box it complains about invalid number of parameters for proxy_set_header.

the specific element of the config which works on the older version but not on the newer version looks like:

location /abc/ {
      proxy_pass http://127.0.0.1:8001;
      proxy_http_version 1.1;
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection $http_connection;
  }

Any suggestions as to what may have changed in either the OS or Nginx?

Thanks a stack

I

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.