In order to pass traffic to JBoss/TomCat on port 80 using Apache we used to install and configure mod_jk
.
Is there an equivalent for nginx? Basically want all port 80 traffic to be passed to jboss.
jbossnginxproxypasstomcat
In order to pass traffic to JBoss/TomCat on port 80 using Apache we used to install and configure mod_jk
.
Is there an equivalent for nginx? Basically want all port 80 traffic to be passed to jboss.
Best Answer
For nginx checkout their docs here. Proxy support is built in.
In the example below from their site, you will see that specific port 80 traffic is being sent to a single servlet container running on port 8080.
Note that if you want to run multiple backend servlet containers ( for load balancing, scaling, etc... ) you should look at the Upstream Fair Module that will send traffic to the least-busy backend server. It is not shipped by defaul w/nginx.