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
This data was collected in June 2017, the original address: http://blog.csdn.net/zhangxy0605/article/details/73293446
Channel number
Channel name
Channel number
Channel name
Channel number
Channel name
1
Author: Houzhiang//>
There are two methods to distribute the content of broadcast film and TV materials: One way is to download, download and then watch, this method is now called podcast (Podcast), the other is to use
1. dslam (DSL access Multiplexer): digital user line access multiplexing, that is, a modem combination connected to a multi-channel compound system center. It collects signals from multiple DSL connections and converts them to a high-speed line, it
The login page is more concise! Registration is still relatively simple, just a lot of introduction, the following screenshot of the registration page, you can take a look!Node LocationGlobal nodes: all nodes use Europe and America nodes: only nodes
Asp function code:Copy codeThe Code is as follows:Function checkip (checkstring) 'uses regular expressions to determine whether the IP address is valid.Dim re1Set re1 = new RegExpRe1.pattern = "^ [0-9] {1, 3 }. [0-9] {1, 3 }. [0-9] {1, 3 }. [0-9] {1,
ASP function Code:
Copy CodeThe code is as follows:
function Checkip (checkstring) ' use regular to determine whether IP is legitimate
Dim Re1
Set Re1=new REGEXP
Re1.pattern= "^[0-9]{1,3}. [0-9] {1,3}. [0-9] {1,3}. [0-9] {1,3}$
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.