架构师_程序员_码农网

Retrieve password
Register

QQ登录

Just one step to get started

Search
View:9764|Reply: 0
打印 上一主题 下一主题

[CDN]Build Your Own CDN Server Static Content Acceleration - LuManager CDN Tutorials

[copy link]
跳转到指定楼层
owner of the building
发表于 2014-10-23 18:55:05| 看该作者回帖奖励|Browse in reverse order|Read mode

Why do you want to build a CDN server to accelerate your website access? First, the free CDN service stability and acceleration effect is not very good; second is to use the domestic paid CDN service price is very expensive, the general grassroots webmaster can not afford; third is the most realistic problem of domestic CDN requirements domain name Be case.

With the Be case of the domain name is naturally the choice of domestic hosts, no Be case of domain names are used in the U.S. hosts, domestic access to the U.S. space speed will sometimes be undesirable, and is always faster than the access speed of the domestic room, relative to the U.S. space, Japan, Hong Kong, and other places of the machine room in the domestic access speed is very fast.

So many people like to put their own website in Japan or Hong Kong server room, even CDN services, we would like to find a Japanese or Hong Kong nodes of CDN acceleration, such as Incapsula provides free CDN of Japanese nodes is very popular. As for free CDN in China, it is basically impossible for domain names without Be case.

But if we use some domestic free space or cloud computing platform to build CDN servers, we can make our website realize the real domestic CDN acceleration, relative to the U.S. CDN, direct use of the domestic CDN will have a qualitative leap in improving the loading speed of the website.

Homemade CDN server is not difficult, the key is to find the right domestic host, if it is a domestic free CDN would be the best, for example:

First, LuManager CDN build before preparation

1, find a domestic access speed VPS host to install LuManager control panel, such as Japan VPS, Hong Kong VPS, or some domestic cloud computing platforms, such as the Chinese version of Windows Azure

2, LuManager control panel supports Nginx, Tengine, Apache, comes with a CDN cache acceleration, simple setup, powerful, installation tutorial: LuManager graphic installation using

3, after tribal testing, LuManager CDN will automatically accelerate the site to generate a mirror cache, the user will no longer be accessing the source site, but the CDN acceleration node, for static files to accelerate the best results.

4, this article with Microsoft Windows Azure, after tribal testing, found that there is no Bei case of domain names can be bound to Windows Azure space, as to whether or not they will encounter customer service audits still need to be observed.

Second, LuManager CDN cache acceleration to create a tutorial

1、Log in LuManager background control panel, click "Add Website" and enter the domain name you want to bind.

2、Then click the "Options" option, select "CDN Site Acceleration" to create a special site, and fill in the domain name of your source site and the IP address of the source site. (Click to enlarge)

3, in the lower part of the selection "open CDN general cache", CDN cache file type default: html|htm|shtml|shtm|gif|jpg|jpeg|png|bmp|swf|js|css|mp3|mav|doc|dot|xls| pdf|txt|zip|xls pdf|txt|zip|rar|gz|tgz|bz2|tgz|rm|rmvb|ico

4, more than one with a half-corner | separated, such as jpg | png | gif, etc., please do not cache php | asp | jsp | cgi | aspx and other dynamic web pages of the content, leave it empty to use the default value.

5, file types can be matched with regular, such as to match the attachment of the discuz, you can use php.mod=attachment (due to php?mod=attachment in the ? mod=attachment is a special symbol in the regular code, you need to use . instead) (click to enlarge)

6, set up can go to the site management to see the site CDN acceleration has been created successfully.

Third, set the DNS domain name resolution to enable CDN caching to accelerate the visit

1, to the domain name of the DNS management office, will be different network users set access to different CDN acceleration nodes, such as foreign and domestic users to distinguish between telecommunications and Unicom users to distinguish between search engines to distinguish.

2、For those who are using US hosting, giving users direct access to domestic CDN cache acceleration on the server will improve the loading speed of web pages to a great extent. This is how I set up my Godaddy hosting to a domestic CDN server room.

LuManager CDN accelerated access effect

1, from the Ping value, set LuManager CDN after the website user access is no longer the source station, and the CDN node.

2, with the webmaster speed measurement tool, with the domestic CDN acceleration of the web page loading speed than did not use double. (Click to enlarge)

3, check LuManager CDN's website file management, found that LuManager CDN has automatically generated a mirror for the source station in the server, CSS, JS, pictures, Html and other static files have been composed successfully. (Click to enlarge)

V. LuManager CDN Advanced Cache Mode and Delete Cached Content

1、To enable LuManager CDN advanced caching mode, please select this item when you create a CDN accelerated website.

2、Advanced cache can freely select the site's index file (default home page), cache files in the node server is "put" and encrypted, and frequently accessed files will use the memory cache, fast speed. It is recommended that users who have high requirements for file confidentiality and access speed, and have plenty of memory, choose this method.

3、To delete LuManager CDN cache content, you can set a password first or not.

4、For example, if the tribe wants to delete the cache file, directly visit this URL: http://10.204.164.9:8888/index.p ... e_delete&id=2&hash=hash value&file=filename

5, hash value of the algorithm: md5 value of the password, that is, md5 (password). If the password is left blank, the password can be deleted without verification (omitting the hash parameter)

6, file name: file name relative to the root directory of the site, starting with /, such as to delete the root directory of the site mydir/file file, with /mydir/file can be (we recommend that the file name with urlencode encoding). If it is "file + memory" mode, the file name is /lum_high_cache.

LuManager CDN use summary

1, CDN server should be set up completely with nginx, do not use apache, CDN cache file type added php.mod=attachment, is the DZX compressed attachment mode, if you do not add php.mod=attachment forums can not cache the compressed package attachments, do not get better results.

2、LuManager CDN cache content is not very convenient to delete, if the cache file is very much then one by one to delete will be very troublesome thing, the solution is to directly to the space file management to delete the cache file. The solution is to delete the cached files directly from the spatial file manager. For example, we found that 400 error occurs occasionally after using LuManager CDN.

LuManager-CDN_08.gif






Previous article: window 2003/2008 server FTP setup tutorial
Next Article:Domestic iCloud server suffered a man-in-the-middle attack, China's Apple users' privacy is not guaranteed
The code farmer network, only published in the process of practice, encountered technical difficulties, do not mislead others.
You need to log in before you can post back Log in | Register

This version of the integral rules

DISCLAIMER:
All software, programming materials or articles published by Code Farmer are limited to be used for learning and research purposes only; the above contents shall not be used for commercial or illegal purposes, otherwise, all the consequences shall be borne by the users themselves. This site information from the network, copyright dispute has nothing to do with this site. You must completely remove the above content from your computer within 24 hours of downloading. If you like the program, please support the genuine software, buy registration and get better genuine service. If there is any infringement, please contact us by email to deal with it.

Mail To:help@itsvse.com

QQ| ( ICP备14021824号-2 )|Sitemap

GMT+8, 2024-9-17 14:02

Quick ReplyBack to topBack to list