Welcome! Log In Create A New Profile

Advanced

upstream nginx (reverse proxy to uWSGI) HTTP/1.1 header not received

Posted by jdp12383 
upstream nginx (reverse proxy to uWSGI) HTTP/1.1 header not received
January 08, 2018 08:31PM
I am facing a weird problem where the upstream nginx (which is reverse proxy to uWSGI - python) doesn't send the HTTP/1.1 header and all the headers are received inside the actual response data. This version of nginx is compiled by the jenkins build server.

To verify if its problem with nginx, I cross-compiled nginx for my arm platform out of the jenkins build server and it works fine.

Appreciate any guidance in debugging this problem. I can post nginx conf on request if anybody see need of it.

My setup

nginx v1.6.2 <--------------------> nginx v1.6.2 <---------> Client
|
uWSGI

Following is **non-working** curl output,

> GET /login.html HTTP/1.1
> Host: 192.168.128.2:8080
> User-Agent: curl/7.51.0
> Accept: */*
>
Server: nginx/1.6.2
Date: Fri, 05 Jan 2018 12:00:24 GMT
Content-Type: text/html
Content-Length: 160
Connection: close
Location: http://192.168.13.2/

<html>
<head><title>302 Found</title></head>
<body bgcolor="white">
<center><h1>302 Found</h1></center>
<hr><center>nginx/1.6.2</center>
</body>
</html>

The **working** curl output is as below,

> GET /login.html HTTP/1.1
> Host: 192.168.128.2:8080
> User-Agent: curl/7.51.0
> Accept: */*
>
< HTTP/1.1 302 Moved Temporarily
< Server: nginx/1.6.2
< Date: Fri, 05 Jan 2018 11:58:17 GMT
< Content-Type: text/html
< Content-Length: 160
< Location: https://192.168.128.2:8080/
< Connection: keep-alive
<
<html>
<head><title>302 Found</title></head>
<body bgcolor="white">
<center><h1>302 Found</h1></center>
<hr><center>nginx/1.6.2</center>
</body>
</html>



Edited 1 time(s). Last edit at 01/08/2018 08:35PM by jdp12383.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 83
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