Nginx is not only a common web server, but also a high-performance reverse proxy server. Let's talk about the configuration of reverse proxy.
Because the server does not only run php, there are some jsp programs, so you need to use the reverse proxy to specify the corresponding port to the local.
The following is an example of the next jsp website proxy for the server: server { listen 80; server_name portal.jser.io; server_tokens off; # hide nginx version number location /{proxy_pass http://localhost:8080/;proxy_redirect off;proxy_set_header Host $host;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;}}
If portal.jser.io accesses this server directly from the server Go to port 8080 of Tomcat and implement a reverse proxy.
You can use this method to configure multiple sites for a server and assign them to different directories or ports through different domain names.
In the era of Internet, the high availability of the network has always been a very critical part, n
1. Get root privileges without logging in. If you dont set GRUB password, then we can use the easie
Nginx starts with version 0.7.48 and supports Squid-like caching. This cache uses the URL and relate
Bill · Gates attitude towards software is: If you want good software, you have to pay for it.
Install ADSL Internet Dialer under SUSE Linux
Ultra-simple Centos vpn build method only needs three, quickly build vpn
MCU IO port expansion technology
Linux kernel upgrade basic tutorial
Basic application tutorial for iptables firewall on Linux
Solve the method of viewing pdf reader under linux
Fedora install virtualbox kernel error
Linux operating system compression command related
Feature article: Three weaknesses between Linux and Windows
Change time method under linux introduce
Quickly install win7 using a mobile hard drive
How to make Windows XP text display clearer
Several common faults in Windows Server 2003
Introduction to several operation modes of disk partition under win8 system
Win8 experience serialized second hit taskbar and personal account! (3)
How Win8 changes the desktop theme
How does Win7 increase virtual memory? How to increase the virtual memory
What are the styles of the win10 start menu?
What are the system services that damage the win7 hard drive?