: 192.168.11.34), installed Nginx (how to install Nginx ?), And configure two sites (how to configure the site ?) : Local IP: 8181 and local IP: 8282. The effect we want to achieve is: the user accesses the http://mytest.com domain name, equivalent to the access port number is 8181 site, the user accesses http://mytest.com/myaddress, equivalent to the login port number is 8282site.
Then modify the local host so that you can access the server through the domain name.
192.168.11.34 mytest.com
The
(1). The concept of a forward proxyForward agent, that is, the legendary agent, he works like a springboard, simply said, I am a user, I can not access a website, but I have access to a proxy server, the proxy server, he can access the site I can not access, so I first connected to the proxy server, Tell him I need the content of the inaccessible site, the
Nginx Proxy reverse Proxy and internal redirection
Nginx Proxy is the trump card function of Nginx, using proxy can basically achieve a complete 7-layer load balancing, it has these characteristics:1, powerful, super performance, the bug does not work more stable.2, back-end
reverse proxy
Continue with examples:Example user Access Http://ooxx.me/readmeBut there's no Readme page on ooxx.me.He was secretly taken back from another server and then spit it out to the user as his own content.
But the user does not knowThis is normal, the user is generally very stupid
The ooxx.me mentioned here has the reverse
Mysql-Proxy proxy configuration, mysql-Proxy proxyI. Principles of Mysql-Proxy
Mysql-Proxy is a simple program between your client and Mysql Server. It can monitor, analyze, and change their communication. It is flexible and unres
client must make some special settings to use the forward proxy.
The concept of reverse proxy
Continue with examples:
Example user Access Http://ooxx.me/readme
But there's no Readme page on ooxx.me.
He was secretly taken back from another server and then spit it out to the user as his own content.
But the user does not know
This is normal, the user is generally
1.Concept of forward proxy
Forward proxyIsOrigin server)To get content from the original server, the client sends a request to the proxy and specifies the target (original server ), then the proxy transfers the request to the original server and returns the obtained content to the client. The client must make some special settings to use the forward
reverse proxy
Continue with examples:Example user Access Http://ooxx.me/readmeBut there's no Readme page on ooxx.me.He was secretly taken back from another server and then spit it out to the user as his own content.
But the user does not knowThis is normal, the user is generally very stupid
The ooxx.me mentioned here has the reverse
Apache forward proxy and reverse proxy for Ubuntu (proxypass \ proxypassreverse) The environment is the latest version of ubuntu. The directory structure installed in apache2 has changed. Many articles on the Internet do not apply. Preparation If your originalProgramIf you have any problems, clear them first. Apt-Get -- purge removal apache2apt-get -- purge rem
A forward proxy is also a legendary proxy. It works like a stepping stone. Simply put, I am a user and cannot access a website, but I can access a proxy server, which can access a website that I cannot access. So I first connect to the proxy server, tell him that I need the content
called a reverse proxy service when it accesses the internal network. At this point the proxy server is represented as a Web server, and the external network can simply treat it as a standard Web server without the need for a specific configuration. The difference is that the server does not save the real data of any
What is an agent?Agent is for network users to proxy the network, such as Google Agent Fq.What is a reverse proxy?A proxy server that accepts connection requests on the Internet, then forwards the request to a server on the internal network, and returns the results from the server to the client requesting a connection
: This article mainly introduces Nginx forward proxy and reverse proxy. For more information about PHP tutorials, see. Three roles
Client
Proxy Server
Target server
Forward proxy
The target server is visible to the client (whether or not the
About the agent, read some of the content, but the talk is particularly around, good confused. Suddenly understand, just don't know right forward proxy settings in the client, proxy server instead of the client to access the application server in the client settings agent, access to the normal access to the site. Servers can only find the proxy server layer, and
A forward proxy is a server that is located between the client and the original server (Origin server), in order to obtain content from the original server, the client sends a request to the agent and specifies the target (the original server), and the agent forwards the request to the original server and returns the obtained content to the client. The client must make some special settings to use the forward proxy.Reverse
To sum up is:1, the agent when the client knows the server, through the proxy to access the server, then the agent is the server2, reverse proxy when the client does not know the server side, the server knows the client, through the proxy to access the server, then the agent is the clientThe concept of a forward proxyT
Article title: Squid implements reverse proxy and has intranet proxy. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
All files on my site are static html. to further speed up the webpage, squid is used to implement
Reverse proxy and nginx Example 1 concept of reverse proxy
The reverse proxy method is to use a proxy server to accept connection requests from the Internet, and then forward the reques
mechanism that blocks certain keywords or content types. This can be another level of preventing malicious code from attacking a real server.
A large number of tasks that a front-end proxy server can perform can also be done by a reverse proxy server. A cache server, such as squid, can work with a reverse
Through Nginx reverse proxy, will not get the real IP, is to obtain the Nginx IP, to get the real IP to be configured nginx configuration file: nginx.conf
Proxy_set_header X-real-ip $remote _addr;
For example:
######################################################################## #要转发地域名: Upstream t.csdn.com { server 192.168.1.188:8080 max_fails=0 weig
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.