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;
}
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
add a comment |
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
add a comment |
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
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
nginx
asked 7 mins ago
BlackBrainBlackBrain
1124
1124
add a comment |
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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