


nginx combines with tomcat to make a simple reverse proxy tomcat nginx apache wildfly installation and configuration nginx tomcat load balancing
Jul 29, 2016 am 08:53 AM1. Simple instructions
Install nginx on server 1, listen on port 80, ip: 192.168.56.201
Install tomcat on server 2, listen on port 8080
2. Modify nginx configuration
vi nginx.conf
<span style="font-family:Arial, Helvetica, sans-serif;">找到server一段,并在localtion最下面加入</span><span style="font-family: Arial, Helvetica, sans-serif;">proxy_pass http://192.168.56.202:8080;修改后的配置如下</span>
<span style="font-family: Arial, Helvetica, sans-serif;"> server {</span>
listen 80; server_name localhost; #charset koi8-r; #access_log logs/host.access.log main; location / { root html; index index.html index.htm; proxy_pass http://192.168.56.202:8080; }
4. Access http://192.168.56.201 with the browser. At this time, you can see that the page jumps to the familiar tomcat welcome page.
The above introduces nginx combined with tomcat to make a simple reverse proxy, including the content of tomcat and nginx. I hope it will be helpful to friends who are interested in PHP tutorials.

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

How to allow external network access to tomcat server

How to deploy multiple projects in tomcat

Where is the tomcat installation directory?

Where is the root directory of the tomcat website?

How to check the number of concurrent connections in tomcat

How to check the port number of tomcat

How to run two projects with different port numbers in tomcat
