This article is a mirror article of machine translation, please click here to jump to the original article.

View: 15059|Reply: 0

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

[Copy link]
Posted on 10/23/2014 6:55:05 PM | | | |

Why build a CDN server to accelerate website access? First, the stability and acceleration effect of free CDN services are not very good; second, the price of domestic paid CDN services is extremely expensive, and ordinary grassroots webmasters cannot afford it; The third is the most realistic problem: the domestic CDN requirement domain name Be case.

The domain name with the Be case is naturally the choice of the domestic host, and the domain name without the Be case is the US host, and the speed of domestic access to the US space is sometimes not ideal, and it is always not as fast as the access speed of the domestic computer room.

Therefore, many people like to put their websites in the computer room in Japan or Hong Kong, and even CDN services, we will hope to find CDN acceleration with Japanese or Hong Kong nodes, for exampleIncapsulaThe free CDN provided by the Japanese node is very popular. As for free CDN in China, it is basically impossible for domain names without Be cases.

But if we take advantage of some of the domestic ones ourselvesFree spaceCompared with the US CDN, directly using the domestic CDN will make a qualitative leap in improving the loading speed of the website.

It is not very difficult to make a CDN server, the key is to find a suitable domestic host, if it is domesticFree CDNIt would be preferable, for example:

1. Preparation before building LuManager CDN

1. Find a VPS host with fast access speed in China to install the LuManager control panel, for exampleJapan VPSHong Kong VPS, or some domestic cloud computing platforms, for exampleWindows Azure in China

2. LuManager control panel supports Nginx, Tengine, Apache, comes with CDN cache acceleration, simple setup, powerful functions, installation tutorial:LuManager graphic installation and use

3. After tribal testing, LuManager CDN will automatically generate an image cache for the accelerated website, and the user will no longer access the source website, but the CDN acceleration node, which is the best for static file acceleration.

4. This article uses Microsoft's Windows Azure, after tribal testing, it was found that the domain name without the Bei case can be bound to the Windows Azure space, and it remains to be seen whether it will encounter customer service review.

2. LuManager CDN Cache Acceleration Creation Tutorial

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

2. Then click the "Optional" option, select "CDN Website Acceleration" in the special website creation, and fill in your source website domain name and the IP address of the source website. (Click to enlarge)

3. Select "Enable CDN Normal Caching" below, and the default CDN cache file type is html|htm|shtml|shtm|gif|jpg|jpeg|png|bmp|swf|js|css|mp3|mav|doc|dot|xls|pdf|txt|zip|rar|gz|tgz|bz2|tgz|rm|rmvb|ico

4. Multiple spaces are separated by half-width, such as jpg|png|gif, etc., please do not cache the content of dynamic web pages such as php|asp|jsp|cgi|aspx, etc., and use the default value if left blank.

5. The file type can be matched with regular, if you want to match the attachment of discuz, you can use php.mod=attachment (because of the ? In the regular is a special symbol, which needs to be used. (Click to enlarge)

6. After setting up, you can go to the website management to see that the website CDN acceleration has been successfully created.

3. Set DNS domain name resolution and enable CDN caching to accelerate access

1. Go to the DNS management office of the domain name and access the user settings of different networks to different CDN acceleration nodes, such as foreign and domestic users, China Telecom and China Unicom users, and search engine distinctions.

2. For those who are in useUS hostAllowing users to directly access the domestic CDN cache acceleration server will greatly improve the loading speed of web pages. This is what I put mineGodaddyThe host is set up in the CDN room in China.

4. LuManager CDN accelerates access effects

1. From the ping value, the website user access after setting LuManager CDN is no longer the origin server, but on the CDN node.

2. Using the webmaster speed test tool, the loading speed of the web page accelerated by using domestic CDN is doubled compared to the useless one. (Click to enlarge)

3. Check the website file management of LuManager CDN, and find that LuManager CDN has automatically generated images for the origin server on the server, and static files such as CSS, JS, images, and HTML have been successfully composed. (Click to enlarge)

5. LuManager CDN advanced caching mode and deleting cached content

1. If you want to enable LuManager CDN Advanced Caching Mode, select this option when creating a CDN acceleration website.

2. Advanced caching can freely select the index file of the website (default homepage), the cache file is "randomly placed" on the node server and encrypted, and frequently accessed files will use memory cache, which is very fast. This method is recommended for users who have high file confidentiality and access speed and have sufficient memory.

3. If you want to delete the LuManager CDN cache content, you can set a password or not.

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

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

6. File name: The file name is relative to the root directory of the website, starting with /, if you want to delete the mydir/file file in the root directory of the website, you can use /mydir/file (we recommend encoding the file name with urlencode). If it is in "File + Memory" mode, the file name is /lum_high_cache

6. Summary of LuManager CDN usage

1. The CDN server should be set to use nginx, not apache, the CDN cache file type adds php.mod=attachment, which is the compressed attachment mode of DZX, if you do not add php.mod=attachment to the compressed package attachment of the forum, it will not be cached, and you will not get better results.

2、LuManager CDNIf there are a lot of cache files, it will be very troublesome to delete them one by one, and the solution is to delete the cache files directly in the space file management. For example, I found that I occasionally get a 400 error after using LuManager CDN.






Previous:window 2003/2008 Server FTP Setup Tutorial
Next:The domestic iCloud server was attacked by a man-in-the-middle, and the privacy of Chinese Apple users was not guaranteed
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com