nginx -> httpd -> mod_jk -> tomcat

Aleksandar Lazic al-nginx at
Mon Jul 30 18:11:57 UTC 2018

On 30/07/2018 12:44, Giacomo Arru - BETA Technologies wrote:
>Hi Aleksandar, thank you for your reply.
>> For which particular feature do you need ajp?
>> I have used several tomcats with httpd with ajp but after some
>> horrible errors we switched to http connector.
>We wanted to use HTTP Connector, and set it up. But we couldn't manage
>to make the app work correctly: we coudn't upload files > 60k and
>tweaking nginx and tomcat configuration wouldn't help. We were unable
>to debug the problem. With AJP connector, all features work fine. The
>app is developed with Vaadin 8.

Well this sounds weird as ajp and http have a lot common parts in httpd
and tomcat.

I can help you to debug this behaviour if your are willing.

>We have no static files in our app because they already are served with a CDN.
>We would like test nginx with AJP connector (if somehow supported!).

Well there is one ajp module but I'm not sure how production ready it is.

>client_max_body_size is set to 128m

What's the message in the error log when the upload stops/breaks?

Could you get a debug log?

>so I think the problem occurs at http level while uploading files but I
>can't manage to debug my system.

As we don't know anything about you system it will help a lot to get
some infos about your setup.

Versions + configs:

Environment : azure, google, aws, bare metal, .... ? 


Best regards

PS: If it's OT for the list please let us know, thanks.

>Da: "Aleksandar Lazic" <al-nginx at>
>A: "nginx" <nginx at>
>Inviato: Sabato, 28 luglio 2018 18:41:59
>Oggetto: Re: nginx -> httpd -> mod_jk -> tomcat
>On 26/07/2018 10:06, Giacomo Arru - BETA Technologies wrote:
>>Hi everybody,
>>I recently begun using proxy with nginx (same tests were made with
>Which one do you prefer as both are very good and have similar features.
>>My needs are to proxy for failover and balancing tomcat: I need to
>>serve lots of users with production app.
>>While I understood that a 100% tomcat AJP1.3 compatibility is
>>achievable with apache httpd only and mod_jk, I successfully serve my
>>app with apache to a simple 80 http port (cookie path already
>>patched). So I decided to have a localhost apache httpd to proxy tomcat
>>with AJP. IT works perfectly.
>For which particular feature do you need ajp?
>I have used several tomcats with httpd with ajp but after some horrible
>errors we switched to http connector.
>In case you don't need a special feature in httpd this makes also
>possible to reduce the complexity of your chain ;-)
>nginx (http/https/server static files) -> tomcat
>>Now, I need to proxy httpd with nginx, adding SSL with letsencrypt. I
>>successfuly configured the proxy and everything works but uploads: if I
>>send a file to my app, only small uploads work.
>>I'd like to investigate the headers, maybe I need to transform some
>>string but I'm a completely newbie from this point of view.
>>Do you have some tips on how to investigate the problem?
>With small you mean ~1M, that's the default setup for
>>Giacomo Arru
>Best regards
>nginx mailing list
>nginx at
>Questo messaggio stato analizzato con Libra ESVA ed risultato non infetto.
>Seguire il link qui sotto per segnalarlo come spam:

>nginx mailing list
>nginx at

More information about the nginx mailing list