Welcome! Log In Create A New Profile

Advanced

Re: Content-Length header missing after proxying

James Fidell
August 24, 2011 03:54AM
On 24/08/11 07:14, Maxim Dounin wrote:

> I suspect that you aren't using the config you provided above, but
> instead additionally have something like ssi enabled, i.e.
> something like
>
> ssi on;
> ssi_types application/x-javascript;
>
> also present in your config.

Unfortunately not :(

It isn't the config that I'll be using in production, but with the
exception of a couple of lines I'm hoping are not relevant to the
problem, it is the config that I'm using to try to track down what's
going wrong. For completeness though, here's what I have:

# cat nginx.conf
worker_processes 1;

events {
worker_connections 1024;
}

http {
upstream app {
server localhost:8080;
}

server {
listen 80;

location / {
proxy_pass http://app;
# proxy_pass_header Content-Length;
}
}
}


nginx running with that configuration produced exactly the output from
wget that I showed in my original email.

James

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Content-Length header missing after proxying

James Fidell August 23, 2011 02:46PM

Re: Content-Length header missing after proxying

nexthop August 24, 2011 01:28AM

Re: Content-Length header missing after proxying

James Fidell August 24, 2011 03:48AM

Re: Content-Length header missing after proxying

Maxim Dounin August 24, 2011 02:16AM

Re: Content-Length header missing after proxying

James Fidell August 24, 2011 03:54AM

Re: Content-Length header missing after proxying

Igor Sysoev August 24, 2011 06:38AM

Re: Content-Length header missing after proxying

James Fidell August 24, 2011 07:22AM

Re: Content-Length header missing after proxying

Igor Sysoev August 24, 2011 08:22AM

Re: Content-Length header missing after proxying

Matthias R. W. September 06, 2011 10:06AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 95
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready