Welcome! Log In Create A New Profile

Advanced

intermittent proxy_pass error - body shows headers

June 21, 2012 02:19PM
Hi all

First kudos to all of the maintainers of modules and the nginx team. Great product guys!!

I am getting an intermittent error where the headers of a 302 redirect are being shown as the body in the browser. The connect sits for a long time and then this is show in the browser

0

HTTP/1.1 302 Moved Temporarily
Server: nginx/1.2.1
Date: Thu, 21 Jun 2012 18:09:04 GMT
Content-Length: 0
Connection: keep-alive
Keep-Alive: timeout=20
Location: https://www.myurlthatworls.com/someotherstuff?params

Ideas? config:

location /mylocation {
proxy_pass https://localhost:9191;
proxy_redirect off;

proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass_request_headers on;

client_max_body_size 10m;
client_body_buffer_size 128k;

proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;

proxy_buffer_size 4k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
}


Thanks

Chris
Subject Author Posted

intermittent proxy_pass error - body shows headers

chrislovecnm June 21, 2012 02:19PM

Re: intermittent proxy_pass error - body shows headers

chrislovecnm June 21, 2012 03:25PM

Re: intermittent proxy_pass error - body shows headers

chrislovecnm June 21, 2012 03:58PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 55
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready