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
Forward Agent:
A forward proxy server is a server located on the client side.
When a client in the intranet needs to access a server on the Internet, the request is first sent to the proxy server (①), the proxy server forwards the request to the Internet destination server (②), and the response content is sent to the proxy
Resources to use:
Nginx Primary server One, Nginx standby server, use keepalived for downtime switching.
Tomcat server two, by Nginx reverse proxy and load balancing, here can build server cluster.
Redis server, used for session separation and sharing.
Nginx Primary server: 192.168.50.133
Nginx Standby server: 192.168.50.135
Tomcat Project Server 1:192.168.50.137
Tomcat Project Server 2:192.168.50.139
Redis
Ask for advice !! I love segmentfault. So I refused Baidu. Ask for advice !!
I love segmentfault. So I refused Baidu.
Reply content:
Ask for advice !!I love segmentfault. So I refused Baidu.
In short
Forward Proxy: {client ---> Proxy Server} ---> server.{}Lan
Reverse Proxy: client ---> {
Original http://httpd.apache.org/docs/2.4/howto/reverse_proxy.htmlTranslationReverse Proxy GuideIn addition to being a "basic" Web server and providing static and dynamic content to end users, Apache httpd (and most other Web servers) can also act as a reverse proxy server, also known as a gateway server.In this case, the httpd itself does not generate or host th
In JSP, the method for obtaining the Client IP address is request. getRemoteAddr (), which is valid in most cases. However, the real IP address of the client cannot be obtained through reverse proxy software such as Apache and Squid.
If reverse proxy software is used, when the URL
Guide
Nginx is one of the fastest and most powerful WEB servers, known for its high performance and low resource usage. It can be installed either as a standalone Web server or as a reverse proxy Web server. In this article, I will discuss installing Nginx as an Apache reverse proxy server on a Centos 7 server wit
Obtain the real IP address of the client under multi-level reverse proxy [Squid]
In many applications, you may need to record the real IP address of the user. In this case, you need to obtain the real IP address of the user. In JSP, you can obtain the IP address of the client:Request. getRemoteAddr ()In most cases, this method is effective. However, the real IP address of the client cannot be obtained throu
Nginx because of its efficient concurrency processing ability, and began to be more and more people accept and recognition, now many sites have been completely with nginx instead of Apache to deal with static pages, but dynamic pages, Apache still has its own unique.Here's what the reverse proxy is, and why it's a reverse pro
Article title: Apache reverse proxy on Linux firewall. 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.
This article describes how to install Apache, a Web server with proxy and rewrite rules, on the enterprise firewall, and ho
Objective
In the development of iOS, several kinds of reverse transfer value, there are agents (delegate), Notice (nsnotification), block and so on, this article gives us analysis, how to understand and quick to start agent mode, and with a simple reverse transfer value as a case, Look at agent mode is not very difficult.
A few concepts in the agent model
Before you talk about
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
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
Squid is a very popular server software under a UNIX-like system, and its most important function is to establish a cache between the client and the service. So squid can be used as a reverse proxy, deploy multilevel caches or build CDNs, whatever the name is, essentially the same. Currently there is also a ported version of Squid in Windows that can be used for scenarios that use Windows environments. Here
Implementation of reverse proxy cache Acceleration Based on Apache mod_proxyApache contains the mod_proxy module, which can be used to implement proxy servers and reverse acceleration for backend servers
Install Apache 1.3.x during compilation:
-- Enable-shared = max -- enable-module = most
Note: In Apache 2.x, mod_pro
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.