nginx dont work tomcat with mysql.

November 27, 2016 41 views
Apache Arch Linux

502 Bad Gateway - nginx/1.10.0 (Ubuntu)/

My system: mysql, java vraptor 3 with hibernate.
tomcat8 -> I installed following the manual
nginx installed:

Works with html page, but I have this error when I put a system that accesses mysql, it gets to work later so, when the bank is empty sometimes it works afterwards too, help me I can not take it anymore.

Be the first one to answer this question.