What is Brotli? Here is a quote from Google:
Brotli is a generic-purpose lossless compression algorithm that compresses data using a combination of a modern variant of the LZ77 algorithm, Huffman coding and 2nd order...
The best way to prevent sql injection is to filter out all the data submitted to the background.
For simple cases, such as including single quotes ', semicolon;, <, >, and other characters can be avoide...
Regular nginx installation geoip2 module can also refer to this article.Just pay attention to the * in the article.
Because nginx is already installed through the panel, We ignore the introduction of Nginx In...
Sometimes when you request some interfaces, you need to return the specified text string or json string. If it is a simple logic or a fixed string, you can use nginx to implement it quickly, so you don't need to write...
When the PC and mobile phones need to access different domain names, we can distinguish different clients through Nginx.
By adding a jump to the Nginx configuration file, use user-agent to determine whether the clien...
Sometimes because of the demand, we need to distinguish between the PC side and the mobile side of the visitor.
Here are a few simple ways to introduce:
Nginx Block mobile access:
[crayon-673ed3619003e592571...
Foreword:
Through the log, you can know the user's address, which parts of your website are most popular, the user's browsing time, and targeted optimization for most users' browsers.
Nginx's logs are divided into...
1.stub_status Module installation
Use the command first to check if this module has been installed:
[crayon-673ed361902a6944790399/]
Uppercase -V will display information such as version number and modu...
This article is a supplement to the previous article:
Optimization reference for Nginx in high concurrency scenarios
Optimization of kernel parameters in the /etc/sysctl.conf file
1.net.ipv4.tcp_max_tw_buckets
...
Nginx often causes some performance bottlenecks because of high concurrent connections. Here are some optimization configurations for your reference.
The main focus here is on the optimization of the NGINX configurat...