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
First create a server group and then use Squid to reverse cache port web80 to accelerate your website.
Similar technologies such as 163, sina, and chinaitlab are basically used, and the benefits are great. 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 ip: 2
1.CdnjsHttps://cdnjs.com/librariesFork me on GitHubEveryone loves the Google CDN right? Even Microsoft runs their own CDN.The problem is, they only host the most popular libraries.We host It All-javascript, CSS, SWF, images, etc!Join us now on github!Supports Http/https/spdy, we encourage always using HTTPS!Currently used by ~722,000 websites worldwide.2.MicrosoftHttp://www.asp.net/ajax/cdn3.Googlehttps://developers.google.com/speed/libraries/The Goog
Implemented the function code for CDN to obtain the real IP address of the user (PHP and Asp settings ). Asp function code: The copy code is as follows: functioncheckip (checkstring) uses regular expressions to determine whether the IP address is valid dimre1setre1newRegExpre1. pattern "^ [0-9] {1, 3 }. [0-9] {1, 3 }. [0-9] {1, 3 asp function code:
The code is as follows:
Function checkip (checkstring) 'uses regular expressions to determine whether
Use nsloop to specify different dns server addresses to obtain different CDN addresses
Dns 202.101.172.47 is the dns address of ZhejiangThe obtained sina address is 61.172.201.194/195 (Shanghai Telecom ).Ping 202.101.172.47 returns a latency of about 2 ms.
Dns 8.8.8.8 is the US dns address.The obtained sina address is 12.130.132.30 (USA)Ping 8.8.8.8 returns a latency of about 35 ms.
Dns 202.102.154.3 is the dns address of Shandong Province.
This article introduces how to set the cdn cache expiration time for Windows IIS. If you need it, refer to the following.
1. Open IIS Manager2. Select the website you want to set and click Properties to open the site properties menu.3. Click the HTTP header tab.4. Click Enable content expirationFor example, set the expiration time to 30 minutes, and enter 30 in the expired items after this time period. The unit is minute.Through the above operations,
-empty-value"; Enable coverage data collecting and xcache_coverager_start/stop/get/clean () functionsXcache. coverager = ????????? OffXcache. coveragedump_directory = ""; Xcache end
Restart php and output echo phpinfo (). Check whether the operation is successful!
At this time you need to run the management of IT, In the xcache-3.2.0 directory of the htdocs Management Code directory copy to the virtual machine that can run, directly run.
For details about other configurations, seeXcache.Lighttpd
.a.shifen.com.So summing up is① native to local DNS request www.baidu.com②local DNS requests www.baidu.com to the root domain, the root domain returns COM. domain server IP③ to COM. domain request www.baidu.com,com. Domain returns the server IP of the baidu.com domain④ requests www.baidu.com to Baidu.com, returns the server IP of the CNAME www.a.shifen.com and a.shifen.com domains⑤ request www.a.shifen.com to the root domain⑥ to COM. domain Request www.a.shife.com⑦ Request to Shifen.com⑧ Request
A wall on the ancient road, some open-source Dongdong uses the ancient road CDN, such as predictional and opserver, which leads to slow or unusable services.
Must be replaced
Predictional only needs to replace the page with response. filter, because you have to regularly merge the pages to maintain versions.
Internal class responsestream: memorystream {# region ctor private stream output {Get; set;} public httpcontextbase context {Get; set ;} ///
The
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 of the proxy
Chapter 2 set the DNS of a domain name
Let's warm up first before the beginning.Intelligent DNS is the foundation of CDN. I believe that there will always be two links on the home page. For telecom users, visit Main Site A and for Netcom users, visit image site B. Then there are two domain names. www.naizhao.com points to A and cnc.naizhao.com points to B. After reading it for a long time, the user felt dizzy and casually clicked it in. He found that
How to use the AWS CloudFront for CDN1. Create a new distribution in AWS CloudFront service, select alternative domain names2. Create a new subdomain, and point the new subdomain CNAME to the xxxxxxxx.cloundfront.net you just got from the service .3. Do the original setting for, tell the service where it can get content, the original website can in EC2 or just any web Site that is out side of AWS.4. Setting cache behaviors, tell the service what kind of objects can is cached, what kind's things
Tags: HTTP ar SP file problems bs html amp ef
Although there are many similar servers at home and abroad, such as the initial Google Ajax API, and later SAE and Baidu, there are also different drawbacks, for example, slow access in China and incomplete static files provided... Staticfile is expected to solve this problem.
Access http://staticfile.org/Brief Introduction:
This repository is updated and maintained by sofish, hfcorriez, and ikbear. qiniu cloud storage provides storage and acceler
Use static resource libraries to access online resource files, such as jquery libraries, bootstrap libraries. Use Baidu static resource pool majority, but found that Baidu temporarily does not support HTTPS protocol, BOOTCDN is a good choice. Baidu static resource public Library Advantages: Stable, fastBy Baidu across the country 100+ a CDN node to provide accelerated service.Let open source Library to enjoy with Baidu home static resources equal trea
SQL Server 2005 provides all major high availability features in SQL Server 2005 Standard Edition and SQL Server 2005 Enterprise Edition, data mirroring, replication, failover clusters, and log transmission functions are provided without additional investment. The following describes how to copy data.
Replication-(publishing and subscription) is a group of technologies that can replicate and publish data and objects in a database to another database
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.