<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>Hi Aleksandar, thank you for your reply.<br></div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div> > <!--StartFragment-->For which particular feature do you need ajp?<br>> I have used several tomcats with httpd with ajp but after some horrible<br>> errors we switched to http connector.<!--EndFragment--> </div><div><br></div><div>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.<br></div><div>We have no static files in our app because they already are served with a CDN.<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>We would like test nginx with AJP connector (if somehow supported!).<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div> <!--StartFragment-->client_max_body_size is set to 128m<!--EndFragment--> </div><div><br data-mce-bogus="1"></div><div>so I think the problem occurs at http level while uploading files but I can't manage to debug my system.<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br></div><div data-marker="__SIG_PRE__"><div><div><div><div><br></div><div><br><div><br clear="none"></div><div>Giacomo<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div></div></div></div></div></div><div><br></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>Da: </b>"Aleksandar Lazic" <al-nginx@none.at><br><b>A: </b>"nginx" <nginx@nginx.org><br><b>Inviato: </b>Sabato, 28 luglio 2018 18:41:59<br><b>Oggetto: </b>Re: nginx -> httpd -> mod_jk -> tomcat<br></div><div><br></div><div data-marker="__QUOTED_TEXT__">Hi.<br><br>On 26/07/2018 10:06, Giacomo Arru - BETA Technologies wrote:<br>>Hi everybody,<br>><br>>I recently begun using proxy with nginx (same tests were made with<br>>haproxy).<br><br>Which one do you prefer as both are very good and have similar features.<br><br>>My needs are to proxy for failover and balancing tomcat: I need to<br>>serve lots of users with production app.<br>><br>>While I understood that a 100% tomcat AJP1.3 compatibility is<br>>achievable with apache httpd only and mod_jk, I successfully serve my<br>>app with apache to a simple 80 http port (cookie path already<br>>patched). So I decided to have a localhost apache httpd to proxy tomcat<br>>with AJP. IT works perfectly.<br><br>For which particular feature do you need ajp?<br>I have used several tomcats with httpd with ajp but after some horrible<br>errors we switched to http connector.<br>https://tomcat.apache.org/tomcat-9.0-doc/config/http.html<br><br>In case you don't need a special feature in httpd this makes also<br>possible to reduce the complexity of your chain ;-)<br><br>nginx (http/https/server static files) -> tomcat<br><br>>Now, I need to proxy httpd with nginx, adding SSL with letsencrypt. I<br>>successfuly configured the proxy and everything works but uploads: if I<br>>send a file to my app, only small uploads work.<br>><br>>I'd like to investigate the headers, maybe I need to transform some<br>>string but I'm a completely newbie from this point of view.<br>><br>>Do you have some tips on how to investigate the problem?<br><br>With small you mean ~1M, that's the default setup for<br><br>client_max_body_size<br>https://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size<br><br>>Thanks,<br>><br>>Giacomo Arru<br><br>Best regards<br>Aleks<br>_______________________________________________<br>nginx mailing list<br>nginx@nginx.org<br>http://mailman.nginx.org/mailman/listinfo/nginx<br><br>--<br>Questo messaggio stato analizzato con Libra ESVA ed risultato non infetto.<br>Seguire il link qui sotto per segnalarlo come spam:<br></div></div></body></html>