# HTTP-Post data with Tomcat

**URL:** <https://www.ruby-forum.com/t/http-post-data-with-tomcat/239183>\
**Category:** NGINX\
**Created:** [February 16, 2014, 8:04am UTC](https://www.ruby-forum.com/t/http-post-data-with-tomcat/239183 "2014-02-16T08:04:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [February 16, 2014, 8:04am UTC](https://www.ruby-forum.com/t/http-post-data-with-tomcat/239183/1 "2014-02-16T08:04:52Z")

</div>

Hello,

I’m using Nginx as proxy for a Tomcat 7. My configuration shows:

upstream tomcat {  
server 127.0.0.1:9090 fail\_timeout=0;  
}

location /jenkins  
{  
proxy\_set\_header Host $http\_host;  
proxy\_set\_header X-Real-IP $remote\_addr;  
proxy\_set\_header X-Forwarded-Proto https;  
proxy\_set\_header X-Forwarded-For  
$proxy\_add\_x\_forwarded\_for;

proxy\_pass [https://tomcat](https://tomcat);  
}

I’m using Jenkins and some other war files.  
Some of the container can store some binary files, so the container has  
got an upload form  
which uses HTTP Post data.

I cannot update with this configuration any data, on a native connect to  
Tomcat everything  
works fine, so imho the proxy configuration of Nginx seems to create  
some problems.  
How can I modify my configuration that HTTP post data is passed from  
Nginx to Tomcat  
for uploading binary files?

Thanks

Phil

---

<div class="post-metadata">

**Author:** ![Philipp\_Kraus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f1d935/32.png) [@Philipp\_Kraus](https://www.ruby-forum.com/u/Philipp_Kraus)\
**Post date:** [February 16, 2014, 10:51am UTC](https://www.ruby-forum.com/t/http-post-data-with-tomcat/239183/2 "2014-02-16T10:51:20Z")

</div>

On Sun, Feb 16, 2014 at 08:03:57AM +0100, Philipp Kraus wrote:

Hi there,

> I cannot update with this configuration any data, on a native connect to Tomcat  
> everything  
> works fine, so imho the proxy configuration of Nginx seems to create some  
> problems.

What request do you make?

What response do you get?

What response do you expect?

What do the logs say?

## f

Francis D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
