1. Reverse proxy example 1 1. Achieve the effect (1) Open the browser and enter www.123.com to go to the main page of the Linux system Tomcat. 2. Specific configuration (1) In the hosts file of Windows system, make the correspondence between domain name and IP (2) Making requests in Nginx Notice: The port is open to the outside world. 2. Reverse Proxy Example 2 1. Achieve results (1) Use Nginx reverse proxy to jump to services on different ports according to the access path. The Nginx listening port is 8001. Visit http://127.0.0.1:9001/deu/ and jump directly to 127.0.0.1:8016 Visit http://127.0.0.1:9001/vod/ and jump directly to 127.0.0.1:8021 2. Preparation (1) Prepare two Tomcat servers, one with port 8080 and the other with port 8081. (2) Create folders and test pages (3) Enter the configuration file and modify the port number of Tomocat (4) Modify the port number (5) Perform a test to see if it is successful (6) Configure the second Tomcat 3. Specific configuration (1) Find the specific configuration file of Nginx The listening port number is 9001. If the path contains edu, it will go to 8016. 4. Open external port number: 9001 5. Restart Nginx 6. Final test This is the end of this article about the detailed explanation of Nginx reverse proxy example. For more relevant Nginx reverse proxy content, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: JavaScript function syntax explained
>>: MySQL quick recovery solution based on time point
This article mainly introduces an example of impl...
Some time ago, I submitted a product version to t...
If there are files that are being used by a proce...
Note: Currently, the more popular front-end frame...
Generally, on national days of mourning, days of ...
Table of contents Preface Is the interviewer aski...
View the installation information of mysql: #ps -...
Preface After a long time of reading various mate...
I collected a lot of them, but all ended in failu...
Preface: In daily study and work, we often encoun...
There are two common loading icons on the web, on...
Hello everyone, I am Liang Xu. When using Linux, ...
Download image docker pull openjdk Creating a Dat...
Gtid + Mha + Binlog server configuration: 1: Test...
Table of contents 1. DOM & BOM related 1. Che...