Nginx can proxy service
Forward proxy, for example, over the wall
Reverse Proxy
The difference between forward and reverse proxy
The difference is that the proxy object is not the same
Forward Proxy: proxy object is a client
Reverse Proxy: proxy object is a server
Configuration syntax
Syntax:proxy_pass URL;
Default:——
Context:location,if in location,limit_except
Reverse Proxy demonstration
Create a html file in the following directory / opt / app / code2 of
An increase of 2 profiles
realserver.conf
fx_proxy.conf
After configuring the file, restart nginx -s reload
At this point we use external network through port 8080 to access, not access to.
80-port access can be a normal visit
Principle: Unable to access the server's local port 8080 as a proxy to access the service via port 80 8080