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

View: 13163|Reply: 0

[CDN] Discuz Forum's solution to accelerate user access with CDN

[Copy link]
Posted on 10/25/2014 10:29:21 PM | | |
If you need to use a CDN to speed up your website, I have a simple solution for discuz forums that can make it easy for discuz webmasters to use CDN


1. First, create a CDN channel with your second-level domain name on Alibaba Cloud and wait for it to take effect
2. Bind this second-level domain name to your discuz root directory
3. Go to the background, global > upload settings> basic settings> local attachment URL address, change this item to something like this,http://img.aaa.cn/data/attachment, where img.aaa.cn is the second-level domain name you additionally bind, do not add /
4. Modify the config/config_global.php and set $_config['output']['staticurl'] = 'static/'; changed to $_config['output']['staticurl'] = 'http://img.aaa.cn/static/'; In addition, because there are bug img.aaa.cn s in several details of DZ, if you change this 4th point, it will cause errors in several details of DZ, so please judge for yourself whether to change this point


After completing the above actions, most of your dz's static resources can be accelerated by CDN, which is very simple to operate, but if your attachment has permission settings, then the user will not go to the second-level domain name you set in the background when downloading, so the CDN cannot be accelerated, this is completely unavoidable, even if you accelerate the whole site, you can't speed up this, not only discuz, phpwind also has this problem. Other common open source systems should be explored by yourself, but remember not to use Alibaba Cloud CDN to accelerate dynamic requests, including pseudo-static URLs




Previous:Lose weight and seek the ultimate trick
Next:What is the meaning of spider homing? What is spider homing?
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