Hot answers tagged tomcat
Don't expose the Tomcat server directly to the Internet. Put the web server into a DMZ (ie behind a firewall), then put the Tomcat server behind another firewall. You can use software firewalls provided by the operating system, or hardware firewalls, but you haven't said what OS you're using so I can't give more advice. Something like IPTables or Windows ...
For the purpose of the question I'll assume that the following IPs Nginx 192.168.0.1 Tomcat 192.168.0.2 Configure the tomcat server Change the following line address="127.0.0.1" to address="192.168.0.2" - This will tell Tomcat to listen on the local ip rather then the loopback address. Then we want to configure the IPtables. I used the generator ...
Make sure your proxy from Nginx is going to "127.0.0.1" instead of your server's / site's hostname or IP. If this is done, you could have an issue with the Tomcat connector being on IPV4 (forced by 127.0.0.1) while Nginx is trying to get to it on the IPv6 stack.
If nginx is running, but cannot connect to its upstream server, e.g., to tomcat, then you'd be getting a 50x-style error, NOT a connection refused one. Browser reports site refused to connect. ERR_CONNECTION_REFUSED – Chethan S. Apr 21 at 15:34 This means that you cannot connect to nginx in the first place. Are you sure it is running? Best way to ...
Only top voted, non community-wiki answers of a minimum length are eligible