How to set up nginx server to proxy to a java application
I have a nginx server sitting on dmz to poing traffic to a java application. The reason why i call it java application is because it only has a xxx.jar file running. I could like to proxy the http traffic to the java application. The port is poart 80. I did the following nginx configuration as below, but it doesn't work. Is there any nginx experts here can help me with this issue?
you need to be running a web server that has the .jar file running at all times. A jar file by itself is simply a file that contains instructions for use by java
noci
And the Java application is listening on port 80?
you can verify the listening port by using
netstat -antp
on the server where the java application is active....
(there is a <pid>/java at the end of the line)
And then stop this server and use netstat -antp again to verfy the ports used.
And if listening on port 80, and using http you should be able to verify it's working by using a browser to that addresses.