Reverse Proxy concept:
The client accesses the server initially, but after using a proxy server to proxy server, when the client accesses the server, it does not directly access the server, but first accesses the proxy server, which is then accessed by the
Nginx the principle advantages of reverse proxy:
A reverse proxy can be simply understood to be a proxy server that receives a server request on the Internet, then forwards the request to the internal server, and then returns the result to the requesting client on the Inter
Scenebecause the company intranet has more than one server HTTP service to map to the company's external network static IP, if the port map with the route to do, you can only one intranet server 80-port map to the extranet 80 ports, the other server 80 ports can only map to the outside of the network of 80 ports. Non-80-port mapping in the access time to the domain name plus port, more trouble. And the company portal route can only do 20 port mappings. Definitely not enough later.Then brother K
Apachedo reverse proxy serverThe Apache agent is divided into forward proxy and reverse proxy:1forward Proxy: The client cannot access the external Web directly, it needs to set up a proxy
Apache can use the mod_proxy *. So series modules to implement the forward and reverse proxy functions, or use reverse proxy to achieve load balancing. This article describes how to configure Load Balancing Based on Apache reverse proxy
Reverse ProxyThe reverse proxy method refers to 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 the connection on the Internet, Reverse
The Apache agent is divided into forward proxy and reverse proxy:1 forward Proxy : Clients cannot access the external Web directly, they need to set up a proxy server in the same network as the client, and the client accesses the external Web through the
But if the site has an average of more than 200 requests per second, then the problem is: This is already the best Web server, what should I do? The same scenario applies to the database. To solve this problem, we need to understand the principle of "load balancing".
How Web servers do load Balancing
The most important way to do load balancing for Web servers is DNS redirection and reverse proxy, and the
Nginx because of its efficient concurrency processing capacity, and began to be more and more people accept and recognition, now many sites have been completely replaced by Nginx Apache to deal with static pages, but the dynamic page of the area, Apache has its own unique.
Below what is the reverse proxy, and why the reverse
is, using the proxy)-->lvs-->apache obtained the value is: x-forwarded-for:180.70.92.43 (that is, real IP) Proxy-client-ip: Nullwl-proxy-client-ip:null getremoteaddr:123.126.50.185 (that is, Sogou proxy IP)XXX reference resources: XXX1,http://bbs.linuxtone.org/thread-9050-1-1.html2,http://hi.baidu.com/thinkinginlamp/i
Whenever we mention the reverse proxy, we usually think of Nginx, but today we temporarily ignore the well-known Nginx, using Nodejs, also a single-threaded, event-loop server brother. In many scenarios, I have applied for a VPS host to host and run Web projects. I bought a small Win 03 VPS instance. In the process of use, there is a problem, that is, the server environment of the same type is okay-but if t
Nginx reverse proxy causes large file download to failI. symptom:The Nginx reverse proxy is also nginx. When the client downloads a large file, the "Download failed" message is displayed when the file is downloaded to 1 GB. If the download continues in FireFox, it will download 1 GB again and then fail.Reverse
Nginx is not only a high-performance Web server, but also a high-performance reverse proxy server. The following is a brief talk about Nginx reverse proxy function.What is a reverse proxy?A re
Nginx is a high-performance HTTP and reverse proxy server. The following describes the reverse proxy function of Nginx. What is reverse proxy? A reverse
In the JSP, the method to obtain the IP address of the client is: Request.getremoteaddr (), which is valid in most cases. However, the real IP address of the client cannot be obtained through the reverse proxy software such as Apache,squid.If the reverse proxy software is used, the URL of the http://192.168.1.110:2046/
Firstly, the nginx is introduced as a reverse proxy to achieve load balancing.
The reverse proxy means to accept the connection request on the Internet with the reverse proxy server, then forward the request to the server
Nginx's reverse proxy module has a number of configurations, the following are some common configuration examples:
1.proxy_pass
Syntax: Proxy_pass URL
Configuration block: location,if
Explanation: This configuration item reverses the current request to the server specified by the URL parameter, which can be the hostname or IP address plus port form. For example:
View plain print? nginx.conf configurat
The environment is: Windows2003 + nginx. (using the 1.5.10 version, the current version, as recommended by the official documentation.)
A simple configuration, let Nginx first run up
Nginx configuration is relatively simple. conf directory to find the nginx.conf file, modify the following configuration
The code is as follows
Copy Code
server {Listen 80; The listening port of the bindingserver_name www.111cn.net 111cn.net; The bound domain name#charset Koi8-r;#acces
In the actual project process, because the website to use an online editor (personalized online editing software), need to communicate across the domain! Because the cross-domain communication is more, so at that time think of proxy editing software requests on the website server!This is the actual demand of "reverse proxy"!One, nginx configuration
This blog post is the "Nginx implementation of dynamic/static file caching-technology flow Ken" two. This article will detail how Nginx implements reverse proxy and load balancing technology, supplemented by practical cases.Reverse proxy--"reverse proxy" means to accept a co
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.