Discover reverse proxy cache apache, include the articles, news, trends, analysis and practical advice about reverse proxy cache apache on alibabacloud.com
Because of the project requirements, in the existing PHP project, need to run a Django+mysql project, under the same domain name, the idea is the Apache reverse proxy, the domain name of a link into the proxy.Do a reverse proxy test on the Ubuntu machine, start a Django demo
The reverse proxy configuration process is actually not much different from the forward proxy, the only difference is that the configuration fileA place to change. Need to put:Http_port 3128SwitchHttp_port Accel Vhost VportThen add the backend real server information you want to proxy:Cache_peer 180.97.33.108 Parent 0 originserver Name=aCache_peer 101.226.103.106
Squid reverse proxy CDN build configuration
Because of the company's business needs, you need to build a cdn node somewhere by yourself. You can build a node by using DNSpod smart resolution and squid.
Installation path:/usr/local/squid
1. Install squid
Download http://www.squid-cache.org/Versions/v3/3.4/squid-3.4.8.tar.gz
# Yum-y install gcc-c ++ # install the compilation plug-in
# Tar xvf squid-3.4.8.tar.
The current large concurrent website basically uses Nginx to do proxy server, and do cache, to carry the big concurrency. Previously also used Nginx configured a simple agent, today have time to take out the integration process and share, but most of them are also online to find resources.
Nginx The complete reverse proxy
First, the concept.Forward Proxy Server is what we usually say proxy server, generally in the ie-internet option-connection-LAN settings, the purpose is through the proxy server can access the resources of the server on the Internet, etc.The reverse proxy server, which is us
Build the Tomcat cluster, the front-end of a nginx, to the back of the Apache server, the Apache is responsible for the back-end of the Tomcat server for resource scheduling, such a model than directly with Nginx back to the back-end host, the Tomcat server will receive less pressure, The service will be more stable, and such a model is tested in practice. If Nginx is dispatched directly to the back-end Tom
1. Introduction:Nginx is a Web server that can proxy http, HTTPS, SMTP, IMPS, POP3 protocol connections, as well as a load balancer, and HTTP caching.2. Features:
Nginx is a performance-oriented design of the HTTP server, compared to Apache, lighttpd, with less memory, high stability and other advantages.
Nginx does not adopt the design model of each client thread, but uses the asynchronous log
the page size and loading time, that is, requests are allocated based on the response time of the backend server, and requests are prioritized for short response time. Nginx does not support fair. to use this scheduling algorithm, you must download the Nginx upstream_fair module. Url_hash. This method distributes requests based on the hash results of the access url so that each url is directed to the same backend server, which further improves the efficiency of the backend
We used to do the Lync reverse proxy we used to use TMG, but TMG has too many problems, such as only installed on the Server2008 server, and Microsoft has no subsequent development, we can now use IIS arr to implement the reverse proxy function, he compared to TMG does not need to deploy the server alone, Just find a s
After lunch break to work, colleague said test site access interface appeared in the Too request request Header Or Cookie Large hint, thought fortunately is the test server problem, the impact is not small, but also hurriedly on the server to Test view, Open Nginx and UGWSI log and configuration, found that the back-end service logging is normal, and the test site access log has more than 700 m (only run two or three days without a few visits, a few m is the normal phenomenon), Direct access to
load balancing can be very convenient scale-out server cluster, to achieve the overall concurrency of the cluster, and improve the ability to stress.2, usually the reverse proxy server with the local cache function, through the cache of static resources, effectively reduce the pressure on the back-end server, thereby
In this case,
There is an application running ASP, which is relatively earthy and still uses a local *. mdb database. In this way, it is impossible to run the plug-in Apache: ASP in a Linux environment. It is also a pretty bad ASPProgram, Even HTML templates are not stored in separate directories and are directly mixed with *. asp.
Fortunately, this world has nginx, which is the best Optimization for such things.
If IIS is used to process both A
Recently Ourjs backstage has migrated from pure node. js to Nginx+nodejs up, feel the performance has improved a lot, special share with you.Nginx ("Engine X") is a high-performance HTTP and reverse proxy server, also a IMAP/POP3/SMTP proxy server. Nginx was developed by Igor Sysoev for the second rambler.ru site of Russian traffic, and the first public version 0
CentOS Install Apache commandYum Install Httpd-yNginx installation Please see my blog post:http://tianxingzhe.blog.51cto.com/3390077/1684642First install Nginx and bind to 80 port, install Apache bound listening 8080 port. Then set the Nginx Server directory for the Www_nginx,apache server directory as Www_apache, respectively, in 2 directories to create a new in
In order to save money, the company needs to be distributed in different machine sites are migrated to a machine, and now different machines are running different Web services, part Nginx, part of Apache, because of the more rewrite rules involved, in order to save changes in Kung Fu, After the plan to migrate the site still use the original Web services, but the same machine 80 port can only be assigned to a Web service use, so the plan Nginx use 80,
Because the project needs to implement the function of a domain name agentLike what:
The code is as follows
Copy Code
A.com/a.html=>b.com/b.html
That is, using the a.com agent of the use of B.Com Web site request, after a friend introduction with Apache reverse agent can achieve its purpose, the man tried, really cool. It is also extremely convenient to configure.
(No
permission to write, if not writable, can not generate files in this directory, will cause reverse proxy failure. You can also set Proxy_temp_path to specify the directory where temporary files are stored in the Nginx configuration.
Nginx Configuration File Reference:
HTTP {
#proxy_temp_path/www/proxy_temp;
#设置Web缓存区名称为cache_one, the memory cache space size is
This article mainly introduces the related functions of Nginx Plus, which spans the various versions of Nginx plus R5/R6/R7/R9. The more advanced usage of Nginx reverse proxy and load balancing is involved. Mainly include: HTTP load balancer, HTTP long connection, TCP and UDP load balancing, upstream connection limit, the shortest time Equalization algorithm, session consistency, real-time health check, DNS
Haproxy implements reverse proxy and load balancingReverse Proxy Server features: web Cache (acceleration), reverse proxy, content routing (forwarding requests to specific servers based on traffic and content types), Transcoder
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.