Many people come to the blog to ask questions about website server configuration information and website optimization methods. This article will summarize the technologies and features that have been around wzfou.com over the years. I hope it can be useful to friends in need. As a reference, this article will always be updated, and the latest applications will be updated here in time.
This article focuses more on "software" optimization and improvement of Web server performance. In fact, if you have money, optimizing the website from the perspective of "hardware" is the best. For example, instead of doing everything possible to optimize the server to speed up website access, it is better to spend money to purchase Large memory + SSD + BGP computer room + large bandwidth, this configuration is incomparable to "software" optimization.
Regarding the hosting, storage and other website building services provided by the mining site, please refer to the summary topic: Whether the mining site provides hosting space and website building service summary - free space, free CDN and paid VPS hosting. For more articles on website optimization summary, please refer to:
- The WordPress plug-ins I am using - WP SEO, CDN, caching, pictures, emails, forum plug-ins
- SolusVM from entry to proficiency - installation, usage and tips
- WHMCS from beginner to proficient
1. Host
Classic Bricklayer CN2 GIA. I have used Alibaba Cloud, Tencent Cloud, and Kdatacenter before, and currently I am using Bricklayer’s CN2 GIA package.
2. Server
1. LNMP architecture, is Linux+Nginx+MongoDB+PHP, using Oneinstack one-click package, refer to: OneinStack one-click installation script.
2.ngx_brotli, provides support for Brotli compression format, refer to: Website Optimization Acceleration-Enable TLSV1.3 and Brotli compression.
3. Server security, mainly involves modifying ports, adding whitelists, key-only login, etc., refer to: VPS host and server security protection.
4. B-B-r acceleration, Reference: VPS host acceleration method – one-click installation of acceleration module to increase VPS host speed from the “software”.
5.Nginx fastcgi_cache cache, Reference: WordPress enables Nginx fastcgi_cache cache acceleration method-Nginx configuration example.
6. Memory optimization and release, Linux php-fpm optimization experience-php-fpm process takes up a lot of memory and does not release memory.
7. Google PageSpeed optimization acceleration : PageSpeed server optimization artifact-Nginx deploys the ngx_pagespeed module and accelerates the effect experience
8.Memory allocation control optimization: Linux VPS host settings swap partition and memory allocation control optimization swappiness configuration
3. Website
1. WordPress architecture, The current plug-ins used by WP are: the WordPress plug-ins I am using - WP SEO, CDN, cache, pictures, emails, and forum plug-ins.
2. CDN acceleration, I have used the mirror CDN acceleration of Youpaiyun and Qiniu Cloud before, and I have also tried to build my own CDN. I am currently using Baidu Cloud’s CDN acceleration: Baidu Cloud Storage BOS and Baidu Cloud CDN usage experience .
3. RSS email subscription , reference: Use MailPoet Newsletters plug-in to build RSS email subscription for WordPress to support SMTP.
4. On-site search optimization, add real-time search: Use Algolia to add real-time on-site search function to WordPress - higher search quality and more accurate content.
5. Memcached cache acceleration, reference: Use the Cachify plug-in to cache WordPress pages to Memcached to achieve optimization and acceleration.
6. Page database cache optimization and acceleration, reference:
.
4. Domain name DNS
1. Google cloud DNS, cheap and technically advanced, refer to: Abandoning free DNS and switching to paid DNS - Google cloud DNS application usage and resolution effects.
2. DNSSEC, used NS1 DNS before, but now uses Google DNS resolution. Reference: DNS domain name resolution enables DNSSEC to prevent DNS hijacking - Google Cloud DNS settings DNSSEC.
4. CAA, currently uses Google Cloud DNS to support CAA. For setting methods, please refer to: JD Cloud DNS Free Domain Name Resolution - Supports Line Regional Subdivision. CAA resolution records can be added.
5. Currently in use, ClouDNS is a cheap and easy-to-use DNS resolution service-DNSSEC, master-slave DNS and Asia-Pacific Anycast nodes.
5. HTTPS & HTTP/2
1. Support TLS v1.3, reference: LNMP 1.6 automatically turns on TLS 1.3, website optimization acceleration-turn on TLSV1.3 and Brotli compression.
2.letsencrypt free SSL, reference: Apply and install letsencrypt free SSL certificate for the website in three simple steps.
3. HTTPS optimization and acceleration, mainly supports Certificate Transparency, HSTS, HTTP/2, RSA/ECC Certificate dual certificate reference: eight HTTPS and SSL optimization usage experience-reduce waiting time and reduce HTTPS performance loss.
4. HSTS Preloading, Reference: Enable HSTS and join the HSTS Preload List to make website HTTPS access more secure.
5.SSL expiration reminder. Suitable for friends who tend to forget to renew their SSL due to the large number of websites. Reference: Three free SSL certificate online monitoring and expiration reminder services - no longer have to worry about certificate expiration
6. Email
1. Currently using the third-party email service, Zoho Mail is an easy-to-use and cheap enterprise email - Zoho enterprise (domain name) email application and use tutorial.
7. Mobile
1. AMP mobile adaptive: WordPress AMP mobile optimization - create a WP suitable for mobile search engines and mobile browsing access
8. Others
1. Move with one click. Websites often face the problem of moving space. With one-click moving, switching computer rooms is a very simple matter: quickly move your WordPress in ten minutes: one line of code + three steps.
2.S-S-H port. When using foreign VPS, we often encounter the problem that port 22 cannot be used. We can modify the default port to solve the problem that port 22 of the VPS host cannot be used and the website IP cannot be accessed.