Nginx changes headers of files served from an upstream server unintentionally Announcing the...

Is it possible to ask for a hotel room without minibar/extra services?

Simulating Exploding Dice

The following signatures were invalid: EXPKEYSIG 1397BC53640DB551

Stars Make Stars

Cold is to Refrigerator as warm is to?

How do you clear the ApexPages.getMessages() collection in a test?

Passing functions in C++

Estimate capacitor parameters

What do you call a plan that's an alternative plan in case your initial plan fails?

How to add zeros to reach same number of decimal places in tables?

Can't figure this one out.. What is the missing box?

What kind of display is this?

Notation for two qubit composite product state

Working around an AWS network ACL rule limit

I'm thinking of a number

What's the point in a preamp?

Limit for e and 1/e

Is there folklore associating late breastfeeding with low intelligence and/or gullibility?

Determine whether f is a function, an injection, a surjection

Why does tar appear to skip file contents when output file is /dev/null?

How to colour the US map with Yellow, Green, Red and Blue to minimize the number of states with the colour of Green

Why use gamma over alpha radiation?

How to politely respond to generic emails requesting a PhD/job in my lab? Without wasting too much time

Two different pronunciation of "понял"



Nginx changes headers of files served from an upstream server unintentionally



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Come Celebrate our 10 Year Anniversary!Proxy HTTPS requests to a HTTP backend with NGINXnginx redirect issue with upstream configurationNginx proxy pass works for https but not httpnginx load balancer rewrite to listen portnginx proxy redirecting request to different proxyNginx subversion commit failureNginx/Apache: set HSTS only if X-Forwarded-Proto is httpsuwsgi + nginx + flask: upstream prematurely closed after file is downloadedConfigure NGINX : How to handle 500 Error on upstream itself, While Nginx handle other 5xx errorsNginx reverse proxy to many local servers + webserver duty





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I have a setup in which Nginx 1.15 is running as reverse proxy to an asp.net core application.
I have added some Content-Encoding headers to files served by asp.net core appliaction. I can see it is present when I send request directly to asp.net core application. But when I send request to Nginx the header(Content-Encoding) is not present!
What is the problem?



Here's nginx configuration:



  ##FRONTIER
server {
listen 80;

server_name 0.0.0.0;

location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;

proxy_pass http://frontier_server;

# enable WebSockets
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "keep-alive";
}


}



Thanks









share





























    0















    I have a setup in which Nginx 1.15 is running as reverse proxy to an asp.net core application.
    I have added some Content-Encoding headers to files served by asp.net core appliaction. I can see it is present when I send request directly to asp.net core application. But when I send request to Nginx the header(Content-Encoding) is not present!
    What is the problem?



    Here's nginx configuration:



      ##FRONTIER
    server {
    listen 80;

    server_name 0.0.0.0;

    location / {
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $host;

    proxy_pass http://frontier_server;

    # enable WebSockets
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "keep-alive";
    }


    }



    Thanks









    share

























      0












      0








      0








      I have a setup in which Nginx 1.15 is running as reverse proxy to an asp.net core application.
      I have added some Content-Encoding headers to files served by asp.net core appliaction. I can see it is present when I send request directly to asp.net core application. But when I send request to Nginx the header(Content-Encoding) is not present!
      What is the problem?



      Here's nginx configuration:



        ##FRONTIER
      server {
      listen 80;

      server_name 0.0.0.0;

      location / {
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header Host $host;

      proxy_pass http://frontier_server;

      # enable WebSockets
      proxy_http_version 1.1;
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection "keep-alive";
      }


      }



      Thanks









      share














      I have a setup in which Nginx 1.15 is running as reverse proxy to an asp.net core application.
      I have added some Content-Encoding headers to files served by asp.net core appliaction. I can see it is present when I send request directly to asp.net core application. But when I send request to Nginx the header(Content-Encoding) is not present!
      What is the problem?



      Here's nginx configuration:



        ##FRONTIER
      server {
      listen 80;

      server_name 0.0.0.0;

      location / {
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header Host $host;

      proxy_pass http://frontier_server;

      # enable WebSockets
      proxy_http_version 1.1;
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection "keep-alive";
      }


      }



      Thanks







      nginx





      share












      share










      share



      share










      asked 7 mins ago









      BlackBrainBlackBrain

      1124




      1124






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "2"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f963039%2fnginx-changes-headers-of-files-served-from-an-upstream-server-unintentionally%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Server Fault!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f963039%2fnginx-changes-headers-of-files-served-from-an-upstream-server-unintentionally%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          117736 Шеррод Примітки | Див. також | Посилання | Навігаційне...

          As a Security Precaution, the user account has been locked The Next CEO of Stack OverflowMS...

          Маріан Котлеба Зміст Життєпис | Політичні погляди |...