These days just in contact with Nginx, involving reverse proxy, before this piece a bit vague, and then through the powerful Internet evil to fill this knowledge, special finishing the relevant notes to enhance memory!
Forward Agent (normal proxy)
This is what we typically call a proxy server, only for proxy
provide the server behind the firewall to Internet user access, and the reverse proxy can also provide load balancing for multiple servers on the back end or provide buffering services for slower servers on the back end. In addition, the reverse proxy can enable advanced URL policies and management techniques so that Web pages in different
has been on the reverse of reflection agent do not know how to understand, after Baidu know, combined with the following this picture, finally make clear a little. Simply say from a LAN to the server to the positive, from the client to enter a LAN for the reverseConcept:The reverse proxy method refers to a proxy server that accepts connection requests on the Internet, then forwards the request to a server o
Visual| Program Network Agent is very many types, according to the Agent Service Program Agent Protocol, divided into HTTP Proxy service program, FTP proxy service program, etc., the server running the Agent service program is called the HTTP proxy server and FTP proxy server. The
Proxy: Design modeA proxy is a common design pattern designed to provide a proxy for other objects to control access to an object. The proxy class is responsible for preprocessing the message for the delegate class, filtering the message and forwarding the message, and subsequent processing after the message is delegat
Learn from the beginning (Novice must Read) (reprint) (a dream of floating)
Literacy Articles
What is a proxy server?
Proxy server is a server between the browser and Web server, when you surf the Internet through a proxy server, the browser is not directly to the Web serv
, online authentication(4) The agent can record the user access record (Internet behavior Management), the external hidden user informationFor example Ccproxy use:3. Reverse ProxyThe first contact direction agent feeling is that the client is the presence of a non-aware agent, the reverse proxy is transparent to the outside, visitors do not know that they are visiting an agent. Because the client does not need any configuration to access it.The revers
classRealsubject:isubject { Public voidMethod () {Console.WriteLine ("This is the Method."); } Public voidFunction () {Console.WriteLine ("The is Function."); } } //Agent Topic role Public classProxy:isubject {Private ReadOnlyRealsubject _realsubject; PublicProxy () {_realsubject=NewRealsubject (); } /// ///implement the same interface as the subject, the actual call is the Realsubject method ()/// Public voidMethod () {_rea
Proxy-target-class= "true"/>
Note: The Proxy-target-class property value determines whether an interface based or a class-based proxy is created. If the value of the Proxy-target-class property is set to True, the class based proxy will work (this requires a cglib library).
must specifically configure the forwarding agent to access other sites, such as configuring the proxy server address and port number in the browser.A typical application of a forwarding proxy is to provide access to external Internet networks for internal clients behind the firewall, such as campus network users accessing foreign websites through proxies, and corporate intranet users accessing external Int
A reverse proxy (Reverse proxy) means that a proxy server accepts external connection requests and then forwards the request to a server on the internal network and returns the results obtained from the server to the external request-connected client. At this point, the proxy server behaves as a server.
The reverse
Node development phase, generally used
httpModule to start a local server, easy to debug.
It's probably like this:
varrequire("http");var server = http.createServer();server.listen(8888);
So the question is, how do I deploy my application to the VPS? You can't use it http://10.88.77.66:8888 to access it? Yes, the title of the article is the solution.
My environment is roughly the same centos 6 lnmp一键部署 . As lnmp for how to operate, I will not write. Google for yourself
Suppose my domain name is
The proxy server stands for proxy server. Its function is to obtain network information from the proxy network user. It is a transfer station for network information. In general, when we use a web browser to directly connect to other Internet sites to obtain network information, we must send a request signal to obtain
firewall.
Forward proxy can also use the buffer feature to reduce network usage.
Reverse proxy
A typical purpose is to provide the server behind the firewall to Internet users for access.
The reverse proxy can also provide load balancing for multiple backend servers or buffer services for slow backend servers.
The reverse
: Controls access to an object and, if necessary, provides different levels of use to different users.
Cache Agent: Provides temporary storage space for the results of a target operation so that multiple clients can share the results.
Firewall (Firewall) Agent: Protect the target, not to allow malicious users to approach.
Synchronization (synchronization) Proxy: Enables several users to use an object at the same time without conflict.
Smart Refere
proxy. The forwarding Proxy server can also use caching to mitigate the original server load and provide a response speed.Reverse proxy ServerReverse proxy server Instead, it looks like a normal Web server to the client. The client does not make any special configuration. T
must specifically configure the forwarding agent to access other sites, such as configuring the proxy server address and port number in the browser.A typical application of a forwarding proxy is to provide access to an external Internet network for internal clients behind the firewall , such as campus network users visiting foreign websites through proxies, Company intranet users through the company's unif
#定义代理缓存路径, cache file save path cache initial size and maximum cache time
Proxy_cache_path d:\code\cache levels=1:2 keys_z max_size=20m inactive=1m;
Location/{
#配置上面定义的keys_zone的值Proxy_cache cache1;
#配置url中包括哪个参数的时候不去缓存中查询Proxy_cache_bypass $arg _name;
#定义缓存的keyProxy_cache_key $host $uri$is_args$args;
#缓存时间, if there is cache-control in the header information in response, the cache time in the header will prevail.Proxy_cache_valid 2m;
#当缓存失效后回源出错的时候可以使用缓存中旧数据, the old is better than wron
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.