Label: style blog color OS file Div SP code logBecause the backend execution time is too long and the front end does not wait, a 504 error is prompted.504 error is caused by a limited latency and timeout setting on your CDN server.504 indicates that the front end does not wait to be aborted, but the front end does not work. The back end should be normal.502 error indicates that the backend does not respond, but the backend does not. If the frontend do
Google jquery CDN Acceleration Point
Http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
Microsoft jquery CDN Acceleration Point
Http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.2.min.js
Sina jquery CDN Acceleration Point
Http://lib.sinaapp.com/js/jquery/1.7.2/jquery.min.js
You can also write this, the first choice, if the load failed JS will lo
# multiling http and add a space. The written content is shown in.5) press Ctrl + F and enter http_access deny CONNECT. Press enter to find the content. After SSL_ports, press enter to add two blank lines. For more information, see.
6) Find the # cache_mem 8 MB sentence and delete the previous # number to change the default 8 to the required size. The value here depends on the available memory of the specific machine, the maximum size should be set as much as possible to improve the performance
to c: \ squid
C: \ squid \ etc \ squid. conf is as follows
CopyCode Code: # locally bound IP Port
Http_port IP: 80 vhost
Visible_hostname localhost
Cache_dir ufs c:/squid/cache 1024 16 256
Cache_mem 100 MB
# Proxy IP address and port
Cache_peer IP address parent 80 0 no-query originserver Weight = 1 name =
Cache_peer IP address parent 80 0 no-query originserver Weight = 1 name = B
# Accelerating two sites
Cache_peer_domain A www.aaa.com
Cache_peer_domain B www.bbb.com
ACL all SRC 0.0.0.0/
Since jQuery 1.3, I have not provided the pack version, and I am in favor of using Google CDN for code hosting.
This solution has the following benefits:
1. Smaller downloads.
We all know that there are as many as 38 kb after jQuery 1.3 pack. If you can delete the copyright annotation to get a smaller code, unfortunately this is not only shameless but only saves 1 kb. However, the Min version that uses GZip provided by Google APIs is only 18 KB, And t
;Else {If (result. IndexOf (",")! =-1) {// There are ",", and multiple proxies are estimated. Obtain the first IP address that is not an intranet IP address.Result = result. Replace ("", ""). Replace ("'","");String [] temparyip = result. Split (",;". ToCharArray ());For (int I = 0; I {If (IsIPAddress (temparyip [I]) Temparyip [I]. Substring (0, 3 )! = "10 ." Temparyip [I]. Substring (0, 7 )! = "192.168&quo
The main server group, and then uses Squid to reverse cache port web80 to accelerate your website. portal websites such as 163, sina, and chinaitlab are basically using this technology. The advantage is that. for example, it accelerates the network and protects against hackers (because they see CDN hosts)This is an application that uses the Squid reverse cluster mode.
Network Environment:
Master server group: source Web server group located in public
www Jump to primary domain
The code is as follows
Copy Code
server {Listen 80;server_name www.111cn.net;Access_log off;Error_log off;return to Http://tool.lu$request_uri;}
HTTP jumps to HTTPS
The code is as follows
Copy Code
server {Listen 80;server_name tool.lu;return to Https://tool.lu$request_uri;}
FastCGI
The code is as follows
Copy Code
Location ~. php$ {Try_files $uri = 404;Fastcgi_pa
master server farm, and then use squid to reverse cache the WEB80 port to speed up its own web site. Major portals like 163,sina,chinaitlab are basically using this technology, The benefits are great. For example, to speed up the network and to prevent hackers (because they are seeing a CDN host)This is a use of squid reverse cluster model to do an application
Network environment:
Primary server cluster: The source Web server farm is located in the
Chapter 3rd DNS for setting up domain names
We'll warm up before the play starts.
Intelligent DNS can be said to be the basis of CDN. Believe that everyone do the site will have the following situation: Home page two links, telecommunications users please visit the main site A, Netcom users please visit the Mirror site B. Then do two domain names, www.naizhao.com point to a,cnc.naizhao.com point B. The user looked at half a day feel dizzy, casually p
Many webmaster in the process of building a large web site, often encounter the site in a specific area to open the problem of slow speed. This is usually done in that area to do a site image, through smart DNS to determine the user access to which mirror server.
Here we use WDCP and WDCDN to build our CDN acceleration point. Because WDCDN relies on WDCP, we first install WDCP.The specific steps are as follows:
First step: Install WDCP 1.X
wget
secondsDisadvantagesCan't go wrong, or the problem will be very seriousBackup is unsuccessful and cannot be restored to a point in time3. Virtual Network Technology1.vlanIP-based Port-based technology for MAC addressesLimit broadcast to the scope of each virtual network, thus reduce the transmission of broadcast packets across the network, and improve the transmission efficiency of the network.at the same time, the virtual network can not communicate directly, but must be forwarded through the
This article is from the "practice test truth" blog
How to use BIND, GeoIP, Nginx, and Varnish to create your own efficient CDN network?CDN stands for Content Distrubtion Network, which is a Content delivery Network. In short, it refers to Server Load balancer in all regions. The concept of a whole region can be national or global. The unified DNS server performs address forwarding and selects the region se
First, we need to create a server group and then use Squid to reverse cache Port web80 to accelerate our website. major portal websites such as 163, sina, and chinaitlab are basically using this technology. the advantage is that it has a great advantage. For example, it accelerates the network and protects against hackers (because they see CDN hosts). This is a reverse set using Squid.
First create a server group and then use Squid to reverse cache Po
Preface
Recent work encountered a demand, is to filter some data according to the CDN log, such as traffic, status code statistics, TOP IP, URL, UA, Referer and so on. Used to be the bash shell implementation, but the log volume is large, the number of logs of G, the number of rows up to billies level, through the shell processing a little bit, processing time is too long. The use of the data Processing library for the next Python pandas was studied
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 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.